Difference between revisions of "Vn ms fnc casAirstrike"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Created page with "{{Function |v= 1.00 |author=Wyqer, veteran29 |a= |e= |g1= general |d= <pre>Spawn CAS plane to bomb target position. The plane starts at marker "vn_cas_start" and despawns...")
 
 
Line 13: Line 13:
 
</pre>
 
</pre>
  
|s= [] call [[vn_ms_fnc_casAirstrike]];
+
|s= [_targetPos,_start,_captive,_fnc_onStrike] call [[vn_ms_fnc_casAirstrike]];
  
 
|p1n=_targetPos
 
|p1n=_targetPos

Latest revision as of 23:35, 4 May 2022

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

Description

Spawn CAS plane to bomb target position.
The plane starts at marker "vn_cas_start" and despawns at "vn_cas_stop" (or 0,0,0 if no marker present).

Syntax

Syntax
[_targetPos,_start,_captive,_fnc_onStrike] call vn_ms_fnc_casAirstrike;
Parameters
_targetPos: OBJECT, POSITION - (Optional, default objNull) Target position to bomb.
_start: Position - (Optional, default markerPos "vn_cas_start") Start position of the CAS plane.
_captive: Boolean - (Optional, default false) Should the plane be captive.
_fnc_onStrike: Code - (Optional, default {}) Function called right before bombs drop
Return value
Boolean - Function reached the end

Examples

Example 1
[markerPos "vn_wp07_camp"] call vn_ms_fnc_casAirstrike