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

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
(Page filling)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Wyqer, veteran29
+
|author= Wyqer, veteran29
  
|e=
+
|a= global
 +
 
 +
|e= global
  
 
|g1= VehicleRespawn
 
|g1= VehicleRespawn
  
|d= <pre>/*
+
|d= Respawns given vehicle.
    Author: Wyqer, veteran29
 
    Date: 2019-06-22
 
 
 
    Description:
 
        Respawns given vehicle.
 
 
 
    Parameter(s):
 
        _vehicle -      Vehicle to respawn                      [OBJECT, defaults to objNull]
 
        _initCode    - Code to execute upon vehicle respawn    [BOOL, defaults to true]
 
 
 
    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]];
+
|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>-</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;