Jump to content
Sign in to follow this  
ZuluNineFiveActual

Ai refuses to stay in tank after respawn

Recommended Posts

I am trying to make a multiplayer mission where armoured units fight each other. 6 Leopards vs 8 T90s. I have managed to get units to spawn inside the tanks, using !alive triggers co-coordinating with spawn delay. There have been no problems with BLUFOR at all, but for OPFOR, the units refuses to stay in the tank. I have made it such that when 6 T90s get into a trigger called "capture_west", OPFOR will win, so obviously i set it such that they "move (getmarkerpos "capture_west")". However, after getting killed by a leopard and respawn, they love to leave the T90 and advance on foot! This never happens if I tk them though. I just can't figure out where i went wrong.

edit: I have realised that the ai crew don't spawn into the tank for some weird reason, resulting in the commander exiting the tank. This doesn't happen for players, only for AI on the opfor team.

Edited by ZuluNineFiveActual

Share this post


Link to post
Share on other sites

I didn't know of this command, so therefore I'm not very sure how I'm going to use it with players. This map is intended for all players, but I was testing out how the AI fare in place of the players and realized it was full of bugs. I have managed to solve the problem. I extended the players spawn to 14 seconds, while the trigger to activate a script to go off at 13 seconds. In the script i placed "sleep 2;" as the first line, therefore moving all the (invincible ai crew) and player commander into the tank. So basically this map is only playable as tank commander. If the person and his crew deserts his tank, it explodes after awhile, which is linked to the player, also killing him. This ensures that no matter what the player will get into a tank. Right now I am considering if I should make the tank explode if the player dies outside of his tank.

Share this post


Link to post
Share on other sites

yep, that command wont work with players. I thought u needed it for AI.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×