Difference between revisions of "VN ms fnc spawnAmbHeli"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |e=" to " |a= |e=") |
Lou Montana (talk | contribs) (Page filling) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 8: | Line 7: | ||
|a= | |a= | ||
− | |e= | + | |e= global |
|g1= general | |g1= general | ||
− | |d= | + | |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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |s= [] call [[ | + | |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> | + | |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 |
|
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;