BIS fnc randomPos: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 |= | | game2= arma3 |= | ||
|version2= 1.00|= | |||
|TKOH |= | |||
|1.00|= | |1.00|= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Selects a random position of given params in the triggers area (uses a position as center position). Includes only areas of one of the given types: ''water'', ''ground'', ''out'' (outside of the [[trigger]]) and can exclude types. Can execute a custom code as optional parameter when a position was found. |= Description | | Selects a random position of given params in the triggers area (uses a position as center position). Includes only areas of one of the given types: ''water'', ''ground'', ''out'' (outside of the [[trigger]]) and can exclude types. Can execute a custom code as optional parameter when a position was found. |= Description |
Revision as of 21:18, 13 October 2014
Description
- Description:
- Selects a random position of given params in the triggers area (uses a position as center position). Includes only areas of one of the given types: water, ground, out (outside of the trigger) and can exclude types. Can execute a custom code as optional parameter when a position was found.
- Execution:
- call
- Multiplayer:
- Can be used on client or server maschine.
- Groups:
- Uncategorised
Syntax
- Syntax:
_mylocation = [[position ,trigger],string,array,code] call BIS_fnc_randomPos;
- Parameters:
- Array containg position and a trigger object [ position , trigger] - Array
- Whitelist (one of the following tags: "water", "ground", "out") - String
- (optional) Blacklist (array containing the following tags gettings excluded from the result: "water", "ground", "out") - Array
- (optional) Custom condition (effect unkown) - Code
- Return Value:
- position (array with x,y,z position) - Array
Examples
- Example 1:
/* lets take a look in the area of the trigger _triggerobject with the players position as center for a ground position but no position in the water or outside of the trigger, return the value to _myvariable and execute the custom condition hint(...); */ _myposition = [ [ position player, _triggerobject ], "ground", ["water","out"], {hint("message");} ] call BIS_fnc_randomPos;
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note