Difference between revisions of "VN ms fnc spawnAmbHeli"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - " |a= " to " |author= ")
(Page filling)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Wyqer, veteran29
 
|author= Wyqer, veteran29
  
|e=
+
|a=
 +
 
 +
|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:
 
        Spawn a helicopter in the air near a given position and let it fly away.
 
 
 
    Parameter(s):
 
        _heliClass  - Classname of the helicopter to spawn                  [STRING, defaults to ""]
 
        _pos        - Position in which vicinity to spawn the helicopter    [POSITION, defaults to [0, 0, 0]]
 
 
 
    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]];
+
|s= [heliClass, pos] call [[VN_ms_fnc_spawnAmbHeli]]
  
|p1n=
+
|p1n= heliClass
|p1t=
+
|p1t= string
|p1d=
+
|p1d= helicopter's classname
 
|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;