Difference between revisions of "VN ms module fnc vehicleRespawn respawn"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "[[vn_" to "[[VN_")
(Page filling)
 
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Wyqer, veteran29
 
|author= Wyqer, veteran29
  
|a=
+
|a= global
  
|e=
+
|e= global
  
 
|g1= VehicleRespawn
 
|g1= VehicleRespawn
  
|d= <pre>/*
+
|d= Respawns given vehicle.
    Author: Wyqer, veteran29
 
    Date: 2019-06-22
 
  
    Description:
+
|s= [vehicle, initCode] call [[VN_ms_module_fnc_vehicleRespawn_respawn]]
        Respawns given vehicle.
 
  
    Parameter(s):
+
|p1n= vehicle
        _vehicle -      Vehicle to respawn                      [OBJECT, defaults to objNull]
+
|p1t= object
        _initCode    - Code to execute upon vehicle respawn    [BOOL, defaults to true]
+
|p1d= vehicle to respawn
 
 
    Returns:
 
        Respawned vehicle [OBJECT]
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
 
 
|s= [] call [[VN_ms_module_fnc_vehicleRespawn_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>-</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
Argument(s): global
Effect(s): global

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;