Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script Request
Re: Script Request [message #269308 is a reply to message #268958] Thu, 28 June 2007 03:25 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
I suspect the infantry bots were just commanded to goto the vehicle they were supposed to get into, and once they got there it would make them enter the vehicle ( timer to check how close they are, since the action_complete event does not get called properly when bots reach the end of their waypath ).

Once they get to the vehicle you just delete the bot and give the vehicle whatever AI related scripts you want. I have a custom vehicle AI class that I create subclasses of for various different types of AI: Offensive, defensive, stationary turret, and all have parameters that allow you to specify in Level Edit what priority it should give to each type of target (EG: A machine gun type weapon would prioritise infantry and light vehicles, whereas a cannon type weapon would prioritise heavy vehicles)



If your only controlling access based on whether the vehicle is a ground of VTOL vehicle use the IsVTOLVehicle and IsVehicle scripts to check if its allowed to use them ( cant remember off the top of my head their exact names, its something like that ).

NB: A VTOL vehicle will ALSO return true on IsVehicle, so make sure to check if its a VTOL first, and then check if its a ground vehicle.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Thu, 28 June 2007 03:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: level edit
Next Topic: Plugins for SSGM
Goto Forum:
  


Current Time: Thu Jan 02 21:01:45 MST 2025

Total time taken to generate the page: 0.00863 seconds