Difference between revisions of "VN fnc vn ch34 engineEH"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
(Page filling)
 
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 12: Line 11:
 
|g1= functions
 
|g1= functions
  
|d= <pre>/// Disable engine if the rotors are folded
+
|d= Disable CH-34 engine if the rotors are folded.
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_vn_ch34_engineEH]]
+
|s= [vehicle, isEngineOn] call [[VN_fnc_vn_ch34_engineEH]]
  
|p1n=
+
|p1n= vehicle
|p1t=
+
|p1t= object
|p1d=
+
|p1d= the CH-34
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= isEngineOn
|p2t=
+
|p2t= boolean
|p2d=
+
|p2d= {{Biki|isEngineOn}} value
 
|p2v=
 
|p2v=
  
Line 30: Line 28:
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>[sogCH34, isEngineOn sogCH34] call [[VN_fnc_vn_ch34_engineEH]]; {{cc|if the engine is on and the helicopter is packed, turns the engine off}}</code>
 
}}
 
}}

Latest revision as of 12:28, 22 February 2021

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

Description

Disable CH-34 engine if the rotors are folded.

Syntax

Syntax
[vehicle, isEngineOn] call VN_fnc_vn_ch34_engineEH
Parameters
vehicle: Object - the CH-34
isEngineOn: Boolean - isEngineOn value
Return value
Nothing

Examples

Example 1
[sogCH34, isEngineOn sogCH34] call VN_fnc_vn_ch34_engineEH; // if the engine is on and the helicopter is packed, turns the engine off