Results 1 to 4 of 4

Thread: Action menu

  1. #1
    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
    Happy Days

  2. #2
    First Sergeant
    Join Date
    Jan 16 2003
    Location
    United Kingdom
    Posts
    894
    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 &#91;&#34;Smoke a joint&#34;, &#34;smokejoint.sqs&#34;&#93;[/QUOTE]

    This should add an action which - in this example, anyway - makes the player smoke a joint&#33;
    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&#33; Any ideas?

    [Gareth Gates must die]



    Skul\'s OFP Forum | Visit Crap Studios.com! | Teh crap MuD Forums
    Teh crap MuD needs people! Contact me if you would like to join!
    The Invasion of the n00bs is finished!

  3. #3
    Quote Originally Posted by [b
    Quote[/b] ]player AddAction ["Smoke a joint", "smokejoint.sqs"]
    Instead of this rather use:

    Quote Originally Posted by [b
    Quote[/b] ]vehicle player AddAction ["Smoke a joint", "smokejoint.sqs"]
    and it will work, wether you are inside a vehicle or not

    ~S~ CD
    http://www.swint.demon.nl/ofp/ofpec_work.gif
    Never argue with idiots - they just take you down to their level
    to beat you there with experience
    arabic objects/buildings thread

  4. #4
    First Sergeant
    Join Date
    Jan 16 2003
    Location
    United Kingdom
    Posts
    894
    Thanks, DV&#33;

    [Gareth Gates must die]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •