Player::taskStartScenarioAtPosition: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
Line 1: Line 1:
[[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
[[Scenarios|Scenario List]]<br>---------------<br>-going on the last 3 parameters, they appear to always be '0, 0, 1'<br><br>duration -1 also used in scripts<br><br>sittingScenario parameter is used for sitting scenarios<br><br>teleport parameter teleports ped to the given position
==Syntax==
==Syntax==
<pre>player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, duration, sittingScenario, teleport);</pre>
<pre>player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, duration, sittingScenario, teleport);</pre>

Latest revision as of 20:24, 16 November 2021

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

duration -1 also used in scripts

sittingScenario parameter is used for sitting scenarios

teleport parameter teleports ped to the given position

Syntax

player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, duration, sittingScenario, teleport);

Required Arguments

  • scenarioName: String
  • x: float
  • y: float
  • z: float
  • heading: float
  • duration: Int
  • sittingScenario: Boolean
  • teleport: Boolean

Return value

  • Undefined

Example

// todo

See also