Zonekiller's AI Vehicle Control Systemby
This script is a big part of my battlefield missions, what it does is invite AI to use the vehicle the script is attached to, also adds respawn if you wish and it will delete the vehicle once it is destroyed, if the vehicle gets left somewhere it will respawn or die within 5 min, if someone gets in it at 4 minutes it will reset the clock back and can be left for 5 minutes again. The script works for empty units and AI units as well as players.
All you need to do is put this in the init of the vehicle and place a marker anywhere on the map, the marker is used to turn off respawn for CTI missions, you can set as many vehicles to one marker as you want, when not a CTI mission the marker is used to keep the respawn on.
It should not upset waypoints or scripted move commands, they just get there faster, Yes it is a FSM script it works faster with less effort.
You must add this to the init line for the script to work
The Init Line:
nil = [this,west,1,"marker",0] execFSM "FSM\AI_Driver.fsm";
It will work on all vehicles and addons, you can open a FSM file in notepad but it just looks very messy, near the top of the file you will see this: (The only 5 things you need to adjust, everything else it gets the info it needs from the vehicle)
You can download the BIS FSM EDITOR if you want a look inside the script
Download the BIS FSM EDITOR here
- BI forums