Jump to content
Sign in to follow this  
MrWho

limiting roles for vehicles

Recommended Posts

I have looked on Biki and through the 1st 10 pages here. But still looking for code/script to limit player types to vehicles. IE pilots to air craft, etc.

Any help would be appreciated!

Share this post


Link to post
Share on other sites

There is nothing built in to the game, it would have to be modded.

You could put a "GETIN" eventhandler on the vehicles that would check if a pilot is entering an aircraft or not. I they aren't pilots, throw them out.

--ben

Share this post


Link to post
Share on other sites

I'd only use 1 simple script for that. Place all vehicles you want to check in an array and let the script loop thru it constantly.

For every vehicle in the array check if there's a driver in there and if so, whether the type is one of the pilot types (dunno the codenames but it's in the wiki somewhere).

Only 1 script needed, not 1 eventhandler for every vehicle. smile_o.gif

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  

×