Player::taskEnterVehicle: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 12: Line 12:
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
// todo
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript" highlight="5">
// TODO Example
</syntaxhighlight>
</syntaxhighlight>
</div>
==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 16:46, 29 July 2018

speed 1.0 = walk, 2.0 = run
p5 1 = normal, 3 = teleport to vehicle, 16 = teleport directly into vehicle
p6 is always 0

Usage of seat
-3 = bicycle seats
-1 = driver
0 = passenger
1 = left back seat
2 = right back seat
3 = outside left
4 = outside right

Syntax

player.taskEnterVehicle(vehicle, timeout, seat, speed, p5, p6);

Required Arguments

  • vehicle: Vehicle handle or object
  • timeout: int
  • seat: int
  • speed: float
  • p5: int
  • p6: unknown (to be checked)

Return value

  • Undefined

Example

Client-Side
// TODO Example

See also