Player::taskStartScenarioAtPosition

From RAGE Multiplayer Wiki
Revision as of 23:41, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

List of scenarioNames: pastebin.com/6mrYTdQv

Also a few more listed at Player::TASK_START_SCENARIO_IN_PLACE just above.
---------------
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.

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.

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.

I have no idea what the last 3 parameters are, but I'll try to find out.

-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