Difference between revisions of "VN ms fnc spawnAmbHeli"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " {{Function" to "Category:TODO {{Function")
(Page filling)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 8: Line 7:
 
|a=
 
|a=
  
|e=
+
|e= global
  
 
|g1= general
 
|g1= general
  
|d= <pre>/*
+
|d= Spawn a helicopter (50m) in the air near a given position and let it fly away (towards [0,0,0]). The helicopter and its crew get deleted when 2000m away from their spawn position.
    Author: Wyqer, veteran29
 
    Date: 2019-11-06
 
  
    Description:
+
|s= [heliClass, pos] call [[VN_ms_fnc_spawnAmbHeli]]
        Spawn a helicopter in the air near a given position and let it fly away.
 
  
    Parameter(s):
+
|p1n= heliClass
        _heliClass  - Classname of the helicopter to spawn                  [STRING, defaults to ""]
+
|p1t= string
        _pos        - Position in which vicinity to spawn the helicopter    [POSITION, defaults to [0, 0, 0]]
+
|p1d= helicopter's classname
 
 
    Returns:
 
        Function reached the end [BOOL]
 
*/
 
 
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
 
 
|s= [] call [[vn_ms_fnc_spawnAmbHeli]];
 
 
 
|p1n=
 
|p1t=
 
|p1d=
 
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= pos
|p2t=
+
|p2t= array
|p2d=
+
|p2d= spawn position
 
|p2v=
 
|p2v=
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= function's success
  
|x1= <code>-</code>
+
|x1= <code>["VN_B_air_UH1D_01_02", getPos player] call [[VN_ms_fnc_spawnAmbHeli]];</code>
 
}}
 
}}

Latest revision as of 13:11, 22 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): global

Description

Spawn a helicopter (50m) in the air near a given position and let it fly away (towards [0,0,0]). The helicopter and its crew get deleted when 2000m away from their spawn position.

Syntax

Syntax
[heliClass, pos] call VN_ms_fnc_spawnAmbHeli
Parameters
heliClass: String - helicopter's classname
pos: Array - spawn position
Return value
Boolean - function's success

Examples

Example 1
["VN_B_air_UH1D_01_02", getPos player] call VN_ms_fnc_spawnAmbHeli;