Fandom

武装突袭 Wiki

BIS_fnc_randomPos

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Take On Helicopters
Version:
1.00

Description

Description:
Selects a random position of given whitelist array in trigger 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.

Syntax

Syntax:

_mylocation = [array, array, code] call BIS_fnc_randomPos;
Parameters:
(optional) Whitelist (array containing array [[[position]], radius], or a trigger object or tags ("water", "ground", "out"). Defaults to [world area] - Array

(optional) Blacklist (array containing the following tags gettings excluded from the result: "water", "ground", "out"). Defaults to ["water", "out"] - Array

(optional) Custom condition. Passes position candidate to code as _this variable. If code evaluates true then position is ultimately returned - Code
Return Value:
position (array with x,y position) - Array

Examples

Example 1:
/* lets take a look in the area of the trigger _triggerobject with a longitude greater than 10000 but no position in the water or outside of the trigger, return the position to _myposition */

_myposition = [ [_triggerobject], ["water","out"], {_this select 0 > 10000} ] call BIS_fnc_randomPos;

Additional Information

Execution:
call
Multiplayer:
Can be used on client or server machine.
See also:

See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

更多维基

随机维基