Difference between revisions of "VN fnc revive detachunit"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "{{Function |v= 1.00 |author=Ethan Johnson |a= |e= |g1= advanced_revive_functions |d= <pre>Takes unit and detaches any attached objects which are incapicated players / ai.<...")
 
 
Line 11: Line 11:
 
|d= <pre>Takes unit and detaches any attached objects which are incapicated players / ai.</pre>
 
|d= <pre>Takes unit and detaches any attached objects which are incapicated players / ai.</pre>
  
|s= [] call [[VN_fnc_revive_detachunit]];
+
|s= [_unit,_attached] call [[VN_fnc_revive_detachunit]];
  
 
|p1n=_unit
 
|p1n=_unit

Latest revision as of 21:07, 26 April 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

Takes unit and detaches any attached objects which are incapicated players / ai.

Syntax

Syntax
[_unit,_attached] call VN_fnc_revive_detachunit;
Parameters
_unit: Object - Unit that is the attached unit OR Unit that has others attached
_attached: Boolean - Use attached units from the original unit
Return value
Boolean - Function reached the end

Examples

Example 1
[player, true] call vn_fnc_revive_detachunit