Difference between revisions of "VN fnc vn sniper tree init"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Ethan Johnson |a= |e= |g1= vn_functions |d= <pre>Function called when the sniper tree is initilized at mission start. Will only run once per tr...") |
|||
Line 31: | Line 31: | ||
|r1d=Function reached the end | |r1d=Function reached the end | ||
− | |x1= <code>[[tree_01],0,false] call VN_fnc_sniper_tree_init</code> | + | |x1= <code>[ [tree_01],0,false] call VN_fnc_sniper_tree_init</code> |
}} | }} |
Latest revision as of 06:02, 28 April 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Function called when the sniper tree is initilized at mission start. Will only run once per tree.
Syntax
- Syntax
- [] call VN_fnc_vn_sniper_tree_init;
- Parameters
- _data: Array - (Optional, default
[]
) Data array which contains the tree object - _faction: Number - (Optional, default
0
) Side number for the units in the tree - _traps: Boolean - (Optional, default
FALSE
) Should the tree spawn traps around it - Return value
- Boolean - Function reached the end
Examples
- Example 1
[ [tree_01],0,false] call VN_fnc_sniper_tree_init