Jump to content
Sign in to follow this  
ColdShine

Custom actions inside vehicles

Recommended Posts

In a single player mission, I need the player to notice he's got a new action available, but since the action does not show if the player is in a vehicle (and there are some civilian cars available, so it's possible), he'll never notice he could activate it. He could even end the mission without even noticing the new action. sad.gif

Is there a way to make actions visible even when inside a car? Please don't tell me to use a radio code, because there will be no radio available for the player, since he's a civilian.

Share this post


Link to post
Share on other sites

You could add the action to the vehicle, I have used that method before. Just make a script which detects if the player is in a vehicle then assign the action to it.

RED

Share this post


Link to post
Share on other sites

Thank you, what you said is ok, but how do I avoid the duplicate actions when the player is near the car?

Should I start a loop which adds the action to player's vehicle only when he's in and removes it when he's out? Or is there a better way?

Update: I've written the script, it works great! Wonder if there are better ways of doing the same things...

Share this post


Link to post
Share on other sites

Not that I know of, but if it works why change it?

RED

Share this post


Link to post
Share on other sites

Yes, it's better not to change it, HOWEVER, if there's a simpler method, it should be used. I still know a few people who play OF on very slow systems, so the simpler the way the less lag there is.

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  

×