Re: bots [message #360849 is a reply to message #360255] |
Mon, 01 December 2008 01:58 |
|
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...
|
|
|