Jump to content
Sign in to follow this  
frankie2spankie

Action menu

Recommended Posts

Ok, you know the little box in the bottom right of the screen which makes you swing your rifle on your back or get in a vehicle....?

well... how do you add stuff to this? I know its possible just dont know how its done

Share this post


Link to post
Share on other sites

Create a script which does something, then put this in a trigger or the player's init line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player AddAction ["Smoke a joint", "smokejoint.sqs"]

This should add an action which - in this example, anyway - makes the player smoke a joint! biggrin_o.gif

Just type whatever the action is and the script to execute.

On a related note;

How do you add an action when the player is in a vehicle? I have added an action, but when I get into a vehicle, it goes away. When I exit the vehicle, the action appears again! Any ideas? rock.gif

[Gareth Gates must die]

Share this post


Link to post
Share on other sites
Quote[/b] ]player AddAction ["Smoke a joint", "smokejoint.sqs"]

Instead of this rather use:

Quote[/b] ]vehicle player AddAction ["Smoke a joint", "smokejoint.sqs"]

and it will work, wether you are inside a vehicle or not wink_o.gif

~S~ CD

Share this post


Link to post
Share on other sites

Thanks, DV! biggrin_o.gif

[Gareth Gates must die]

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  

×