Jump to content

R.Martinez

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About R.Martinez

  • Rank
    Rookie
  1. R.Martinez

    Problem with setPos

    Ah, thanks for the help.
  2. R.Martinez

    Problem with setPos

    that worked perfectly, now I'm trying the same thing but to set a variable within an object: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player setVehicleInit "this setpos [getPos this select 0, getPos this select 1, (getPos this select 2) - 2]; this setVariable ["parajump", true]"; processInitCommands; clearVehicleInit player; But I get an error saying <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">'... this setVariable [|#|' Error Missing ] I used your code for the setPos command, using player as the _unit and that worked, teleporting the player to the area. But when I add the setVariable to the init line I get this error. To make sure the syntax was correct for the setVariable part I tried adding it to the init line of a unit in a separate mission. And got no errors, what is missing in that code?
  3. In a custom map I have a script that adds an action to a helicopter that uses the setPos command on the player that uses the action. It is intended that he uses this command while riding in a helicopter to 'teleport' to a different location, the player only, not the helicopter. The problem I'm having is that the player is sent to this location for a fraction of a second then finds himself again back in the chopper. If the player hosting the mission uses the action it works fine and gets teleported to that location but it doesn't work for the other players. Any ideas on how to fix this?
×