Jump to content
Sign in to follow this  
wass24

Help with event handlers!!!

Recommended Posts

I'm creating a multiplayer mission revolving around emergency vehicle responses controlled by 1 player (me). I want to be able to drive a car and have 1 or 2 cars driving directly behind me where ever I go. The AI drivers will not follow me the way that I want them to, so I set up 2 scripts. One script checks if a car that I will drive is moving, if it is, then the other script takes my cars position and direction and loops it to the cars following me. This actually works, but with numerous vehicle groups like this and too many scripts looping at the same time without exiting, the server lags too much.

I would like to set up eventhandlers that check if I am the driver of "car1" and if so, have "car2" and "car3" follow. If I get out of "car1" then the script will end.

If that can't be done, how do I get my original scripts to stop looping when I get out?

Share this post


Link to post
Share on other sites

Moving to Mission Editing & Scripting where it belongs to.

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  

×