setCuratorCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.16


|1.16|= Game version
|serverExec= server


|exec= server| =
|gr1= Curator
____________________________________________________________________________________________


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


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


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


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


|p3= action: [[String]] |PARAMETER3=
|p3= coef: [[Number]] or [[Boolean]]


|p4= coef: [[Number]] or [[Boolean]]  |PARAMETER4=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>curatorModule setCuratorCoef ["Place", 1];</sqf>


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


|x2= <code>curatorModule setCuratorCoef ["Delete", -1e10]</code>|EXAMPLE2=
|seealso= [[Arma 3: Curator]]
 
____________________________________________________________________________________________
 
| [[Curator]] |SEEALSO=
 
| mp= Can be executed only on server |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Curator|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<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:
<br>
<br>
place <br>
edit<br>
delete<br>
destroy<br>
group<br>
synchronize<br>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 14:00, 8 November 2023

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