Fandom

武装突袭 Wiki

BIS_fnc_sceneAreaClearance

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Removes object clutter within a set trigger, for use within cutscenes.

Syntax

Syntax:
param spawn BIS_fnc_sceneAreaClearance;
Parameters:
Object - Name of trigger to use as center point.

Array - List of objects that will be kept during cutscene. Optional parameter, default empty array.

Array - Of format Position, where to move all unwanted objects. Optional parameter, default [-5000, 10000, 0].
Return Value:
Nothing

Examples

Example 1:
0 = [triggerArea1] spawn BIS_fnc_sceneAreaClearance;

Additional Information

Execution:
call
Multiplayer:
-
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

Posted on October 2, 2014 - 16:29 (UTC)
Tryteyker-
In regards to the 'safe position' where the objects get moved, this is how the function handles it (with default values present):

_savepos = [_unwantedObjectsTempPosition, 0, 100, 20, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos;

  if((_savepos distance (getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition"))) = 0) then
  {
    _savepos = _unwantedObjectsTempPosition;
  };

_x setpos _savepos;

If statement has double equals (comparison statement) but I'm not good enough to actually get wiki formatting right.

更多维基

随机维基