Squirrel/Client/Events/Vehicle/onClientEnteredVehicle
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|onClientEnteredVehicle}} {{ScriptingChangesIn0.1.0.11}} This is called when the local player has successfully entered a vehicle. == Syntax == <code>function...") |
(→Syntax) |
||
Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
− | <code>function onClientEnteredTrain( int | + | <code>function onClientEnteredTrain ( pointer Vehicle, int Seat )</code> |
=== Arguments === | === Arguments === |
Revision as of 16:41, 20 February 2015
This is called when the local player has successfully entered a vehicle.
Syntax
function onClientEnteredTrain ( pointer Vehicle, int Seat )
Arguments
- pVehicle - The pointer of the vehicle the player entered
- iSeat - The ID of the passenger seat.
Returns
This event does not handle return values.
Example
function onClientEnteredVehicle ( pVehicle, iSeat) { // Some code }
Notes
The function Message was used in this example. More info about it can be found in the corresponding page.