{"name":"BIS_fnc_curatorObjectRegisteredTable","operator":null,"title":"BIS fnc curatorObjectRegisteredTable","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_curatorObjectRegisteredTable","revid":349171,"updated":"2023-11-08T14:50:37Z","groups":["Curator"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.16"}],"since":{"game":"arma3","name":"Arma 3","version":"1.16"},"arma3_since":"1.16","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Register curator object costs from a table.\n\nA table can be exported into a spreadsheet using BIS_fnc_exportCuratorCostTable and used as argument for this function.","syntaxes":[{"syntax":"[curatorLogic, [className, cost, className, cost...]] call BIS_fnc_curatorObjectRegisteredTable","since":null,"effect":null,"exec":null,"params":[{"name":"curatorLogic","type":"Object","optional":false,"default":null,"description":"the curator logic to set the object costs for.","types":["Object"],"since":null,"text":"curatorLogic: Object - the curator logic to set the object costs for."},{"name":"className","type":"String","optional":false,"default":null,"description":"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.","types":["String"],"since":null,"text":"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."},{"name":"cost","type":"Number","optional":false,"default":null,"description":"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.","types":["Number"],"since":null,"text":"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."}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"}}],"examples":[{"text":"```sqf\n// Nothing but the listed flare modules will show up in the curator's unit list\n[getAssignedCuratorLogic player, [\"ModuleFlareWhite_F\",0.02,\"ModuleFlareYellow_F\",0.02,\"ModuleFlareGreen_F\",0.02]] call BIS_fnc_curatorObjectRegisteredTable;\n```","code":["// Nothing but the listed flare modules will show up in the curator's unit list\n[getAssignedCuratorLogic player, [\"ModuleFlareWhite_F\",0.02,\"ModuleFlareYellow_F\",0.02,\"ModuleFlareGreen_F\",0.02]] call BIS_fnc_curatorObjectRegisteredTable;"]}],"multiplayer":"Must be executed where the logic is local (on the machine of the player it is assigned to)","problems":null,"aliases":[],"see_also":["BIS_fnc_exportCuratorCostTable"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Curator","Functions","Introduced with Arma 3 version 1.16"],"docblock":null,"filled_from_docblock":[]}