setCuratorCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "</dd> </dl>" to "</dd> </dl>")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.16
|1.16


|serverExec= server
|serverExec= server
Line 9: Line 8:
|gr1= Curator
|gr1= Curator


| Sets coef for some action (coef have to be bigger than -1 000 000, anything lower is considered as disabled action).
|descr= Sets coef for some action (coef have to be bigger than -1 000 000, anything lower is considered as disabled action).


|s1= curatorObj '''setCuratorCoef''' [action,coef]
|s1= curatorObj [[setCuratorCoef]] [action, coef]


|p1= curatorObj: [[Object]] - Curator module.
|p1= curatorObj: [[Object]] - Curator module


|p2= action: [[String]]
|p2= action: [[String]] - can be one of:
* "Place"
* "Edit"
* "Delete"
* "Destroy"
* "Group"
* "Synchronize"


|p3= coef: [[Number]] or [[Boolean]]
|p3= coef: [[Number]] or [[Boolean]]
Line 21: Line 26:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>curatorModule setCuratorCoef ["Place", 1]</code>
|x1= <code>curatorModule [[setCuratorCoef]] ["Place", 1];</code>


|x2= <code>curatorModule setCuratorCoef ["Delete", -1e10]</code>
|x2= <code>curatorModule [[setCuratorCoef]] ["Delete", -1e10];</code>


| [[Arma 3: Curator]]
|seealso= [[Arma 3: Curator]]
 
|mp= Can be executed only on server
}}
}}
<dl class="command_description">
<dt></dt>
<dd class="notedate">Posted on March 25, 2015 - 21:46 (UTC)</dd>
<dt class="note">[[User:Austin medic|Austin medic]]</dt>
<dd class="note">
Possible actions are:
* place
* edit
* delete
* destroy
* group
* synchronize
</dd>
</dl>

Revision as of 17:55, 13 June 2021

Hover & click on the images for description

Description

Description:
Sets coef for some action (coef have to be bigger than -1 000 000, anything lower is considered as disabled action).
Groups:
Curator

Syntax

Syntax:
curatorObj setCuratorCoef [action, coef]
Parameters:
curatorObj: Object - Curator module
action: String - can be one of:
  • "Place"
  • "Edit"
  • "Delete"
  • "Destroy"
  • "Group"
  • "Synchronize"
coef: Number or Boolean
Return Value:
Nothing

Examples

Example 1:
curatorModule setCuratorCoef ["Place", 1];
Example 2:
curatorModule setCuratorCoef ["Delete", -1e10];

Additional Information

See also:
Arma 3: Curator

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