Fandom

武装突袭 Wiki

BIS_fnc_curatorObjectRegisteredTable

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

Introduced with Arma 3 version 1.16
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.16

Description

Description:
Register curator object costs from a table.
You can export a table into spreadsheet using BIS_fnc_exportCuratorCostTable and use the result as param for this function.

Syntax

Syntax:
[curatorLogic, [className, cost, className, cost...]] call BIS_fnc_curatorObjectRegisteredTable;
Parameters:
curatorLogic: Object - The curator logic to set the object costs for.

className: String - The class name of the object you wish to assign a cost to. Any objects not listed in the array won't appear in the curator's unit list.

cost: Number - The cost you wish to assign to the preceding object. The cost should be between 0 and 1, with 1 representing the entire resource bar of the curator.
Return Value:
Boolean

Examples

Example 1:
// Nothing but the listed flare modules will show up in the curator's unit list
[ getAssignedCuratorLogic player, ["ModuleFlareWhite_F",0.02,"ModuleFlareYellow_F",0.02,"ModuleFlareGreen_F",0.02]] call BIS_fnc_curatorObjectRegisteredTable;

Additional Information

Execution:
call
Multiplayer:
Must be executed where the logic is local (on the machine of the player it is assigned to)
See also:

BIS_fnc_exportCuratorCostTable

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 November 10, 2014 - 17:02 (UTC)
SilentSpike
Be aware that you must provide an equal number of elements to the array of class names and costs. That mean every class name should be followed by an associated cost. You can add as many objects as you want as long as this condition is met.

更多维基

随机维基