Player::taskStartScenarioAtPosition: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
mNo edit summary
Line 1: Line 1:
List of scenarioNames: pastebin.com/6mrYTdQv<br><br>Also a few more listed at Player::TASK_START_SCENARIO_IN_PLACE just above.<br>---------------<br>The first parameter in every scenario has always been a Ped of some sort. The second like TASK_START_SCENARIO_IN_PLACE is the name of the scenario. <br><br>The next 4 parameters were harder to decipher. After viewing 'hairdo_shop_mp.ysc.c4', and being confused from seeing the case in other scripts, they passed the first three of the arguments as one array from a function, and it looked like it was obviously x, y, and z.<br><br>I haven't seen the sixth parameter go to or over 360, making me believe that it is rotation, but I really can't confirm anything.<br><br>I have no idea what the last 3 parameters are, but I'll try to find out.<br><br>-going on the last 3 parameters, they appear to always be '0, 0, 1'<br><br>p6 -1 also used in scrips<br><br>p7 used for sitting scenarios<br><br>p8 teleports ped to position
[[Scenarios|Scenario List]]<br>---------------<br>-going on the last 3 parameters, they appear to always be '0, 0, 1'<br><br>p6 -1 also used in scrips<br><br>p7 used for sitting scenarios<br><br>p8 teleports ped to position
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, p6, p7, p8);</syntaxhighlight>
<syntaxhighlight lang="javascript">player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, p6, p7, p8);</syntaxhighlight>

Revision as of 17:27, 10 August 2018

Scenario List
---------------
-going on the last 3 parameters, they appear to always be '0, 0, 1'

p6 -1 also used in scrips

p7 used for sitting scenarios

p8 teleports ped to position

Syntax

player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, p6, p7, p8);

Required Arguments

  • scenarioName: String
  • x: float
  • y: float
  • z: float
  • heading: float
  • p6: unknown (to be checked)
  • p7: Boolean
  • p8: Boolean

Return value

  • Undefined

Example

// todo

See also