Player::taskStartScenarioInPlace: Difference between revisions

From RAGE Multiplayer Wiki
Line 10: Line 10:


==Example==
==Example==
<syntaxhighlight lang="javascript">
<pre>
// todo
// todo
</syntaxhighlight>
</pre>
 
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 17:44, 16 August 2018

Plays a scenario on a Ped at their current location.

unkDelay - Usually 0 or -1, doesn't seem to have any effect. Might be a delay between sequences.
playEnterAnim - Plays the 'Enter' anim if true, otherwise plays the 'Exit' anim. Scenarios that don't have any 'Enter' anims won't play if this is set to true.

Scenario List

Syntax

player.taskStartScenarioInPlace(scenarioName, unkDelay, playEnterAnim);

Required Arguments

  • scenarioName: String
  • unkDelay: int
  • playEnterAnim: Boolean

Return value

  • Undefined

Example

// todo

See also