Jump to content
Sign in to follow this  
Coding_Camel

Using a script only in a certain vehicle.

Recommended Posts

So, been trying to get a radar script working ( detects speed of another vehicle infront of you ) and it seems to work. Now what I want to do is make the script only work on a certain vehicle. For instance, black SUV.

By work on that vehicle, I mean when you get in the radar script activates, and only the driver can use it. Is there a way to do this?

Also, if this is in the wrong section i'm sorry. First time posting here!

Share this post


Link to post
Share on other sites

Place this in the cars init

this addAction ["Radar","scriptname.sqf",[],1,false,true,"","( driver _target == _this)"];

Share this post


Link to post
Share on other sites
Place this in the cars init

this addAction ["Radar","scriptname.sqf",[],1,false,true,"","( driver _target == _this)"];

Alright, thanks! Will give it a go in a bit.

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  

×