Player::taskStartScenarioAtPosition: Difference between revisions

From RAGE Multiplayer Wiki
m (Clarified p6 arg type)
No 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>p6 -1 also used in scrips<br><br>p7 used for sitting scenarios<br><br>p8 teleports ped to position
==Syntax==
==Syntax==
<pre>player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, p6, p7, p8);</pre>
<pre>player.taskStartScenarioAtPosition(scenarioName, x, y, z, heading, duration, sittingScenario, teleport);</pre>
=== Required Arguments ===
=== Required Arguments ===
*'''scenarioName:''' String
*'''scenarioName:''' String
Line 8: Line 8:
*'''z:''' float
*'''z:''' float
*'''heading:''' float
*'''heading:''' float
*'''p6:''' Int
*'''duration:''' Int
*'''p7:''' Boolean
*'''sittingScenario:''' Boolean
*'''p8:''' Boolean
*'''teleport:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Revision as of 20:22, 16 November 2021

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, 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