Player::taskPutDirectlyIntoCover: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
*'''y:''' float
*'''y:''' float
*'''z:''' float
*'''z:''' float
*'''timeout:''' unknown (to be checked)
*'''timeout:''' time in milliseconds
*'''p5:''' Boolean
*'''p5:''' Boolean
*'''p6:''' float
*'''p6:''' float
*'''p7:''' Boolean
*'''p7:''' Boolean
*'''p8:''' Boolean
*'''p8:''' Boolean
*'''p9:''' unknown (to be checked)
*'''p9:''' number(needs to be checked but doesn't argue with a number.)
*'''p10:''' Boolean
*'''p10:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
var localPlayer = mp.players.local;
localPlayer.taskPutDirectlyIntoCover(localPlayer.position.x, localPlayer.position.y, localPlayer.position.z, 5000, false, 0, true, false, 1, false);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 15:21, 27 July 2018

Syntax

player.taskPutDirectlyIntoCover(x, y, z, timeout, p5, p6, p7, p8, p9, p10);

Required Arguments

  • x: float
  • y: float
  • z: float
  • timeout: time in milliseconds
  • p5: Boolean
  • p6: float
  • p7: Boolean
  • p8: Boolean
  • p9: number(needs to be checked but doesn't argue with a number.)
  • p10: Boolean

Return value

  • Undefined

Example

var localPlayer = mp.players.local;
localPlayer.taskPutDirectlyIntoCover(localPlayer.position.x, localPlayer.position.y, localPlayer.position.z, 5000, false, 0, true, false, 1, false);

See also