addaction to an object using a script

Discussion in 'Support' started by abn214, Apr 9, 2013.

  1. abn214

    abn214 New Member

    Joined:
    Apr 2, 2013
    Messages:
    5
    Likes Received:
    0
    Hello, for what is wanted by a script to add an action in the options menu of the character when I'm near objects. eg

    When I approached a gas station called "Land_A_FuelStation_Shed" less than 10 meters appears an option called "Button message" and send mensaje.sqf to upload a file, which is a message that comes on the screen.

    so, I want to use the (message button) to display a message on the screen only if I'm within 10 feet of the object.

    Something like this:

    player addAction ["Boton mensage", "mensaje.sqf",[false],1,true,true,"","(_target distance _player) <10"];


    but not how to use this command. thanks
     
  2. Seven

    Seven Moderator Staff Member

    Joined:
    Dec 16, 2012
    Messages:
    277
    Likes Received:
    86

Share This Page