Difference between revisions of "VN ms module fnc vehicleRespawn respawn"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
Lou Montana (talk | contribs) (Page filling) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Wyqer, veteran29 | |author= Wyqer, veteran29 | ||
− | |a= | + | |a= global |
− | |e= | + | |e= global |
|g1= VehicleRespawn | |g1= VehicleRespawn | ||
− | |d= | + | |d= Respawns given vehicle. |
− | |||
− | |||
− | + | |s= [vehicle, initCode] call [[VN_ms_module_fnc_vehicleRespawn_respawn]] | |
− | |||
− | + | |p1n= vehicle | |
− | + | |p1t= object | |
− | + | |p1d= vehicle to respawn | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |p1n= | ||
− | |p1t= | ||
− | |p1d= | ||
|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;