Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » bots (switching weapons)
Re: bots [message #360849 is a reply to message #360255] Mon, 01 December 2008 01:58 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Well I am at work at the moment, but I am fairly sure what your asking for is not catered for in any existing scripts in 3.4.4, however it is possible, if you know some c++ and are willing to compile your own scripts.dll.

If I remember correctly (again, I am at work so I can't actually check at the moment) the engine call

Commands->Select_Weapon(obj,"name of weapon preset");


will cause the infantry unit (or any other ArmedGameObj) to select the weapon with the given name.

If I remember tonight I might write some simple infantry AI scripts which feature this behaviour and perhaps hook into my more complex AI rountines (such as target prioritisation etc) for inclusion in 4.0...


http://steamsignature.com/card/1/76561197975867233.png
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing Chat Fonts?
Next Topic: RETICLES !
Goto Forum:
  


Current Time: Mon Dec 30 16:35:49 MST 2024

Total time taken to generate the page: 0.00769 seconds