Difference between revisions of "VN ms module fnc vehicleRespawn respawn"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (1 revision imported) |
Lou Montana (talk | contribs) (Page filling) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Wyqer, veteran29 |
− | |e= | + | |a= global |
+ | |||
+ | |e= global | ||
|g1= VehicleRespawn | |g1= VehicleRespawn | ||
− | |d= | + | |d= Respawns given vehicle. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |s= [] call [[ | + | |s= [vehicle, initCode] call [[VN_ms_module_fnc_vehicleRespawn_respawn]] |
− | |p1n= | + | |p1n= vehicle |
− | |p1t= | + | |p1t= object |
− | |p1d= | + | |p1d= vehicle to respawn |
|p1v= | |p1v= | ||
− | |p2n= | + | |p2n= initCode |
− | |p2t= | + | |p2t= code |
− | |p2d= | + | |p2d= code to execute upon vehicle respawn |
− | |p2v= | + | |p2v= {} |
− | |r1t= | + | |r1t= object |
− | |r1d= | + | |r1d= the new vehicle |
− | |x1= <code> | + | |x1= <code>[sogJeep, { hint "respawned!"; }] call [[VN_ms_module_fnc_vehicleRespawn_respawn]];</code> |
}} | }} |
Latest revision as of 19:59, 26 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Respawns given vehicle.
Syntax
- Syntax
- [vehicle, initCode] call VN_ms_module_fnc_vehicleRespawn_respawn
- Parameters
- vehicle: Object - vehicle to respawn
- initCode: Code - (Optional, default
{}
) code to execute upon vehicle respawn - Return value
- Object - the new vehicle
Examples
- Example 1
[sogJeep, { hint "respawned!"; }] call VN_ms_module_fnc_vehicleRespawn_respawn;