setCuratorCoef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
Line 14: Line 14:
| curatorObj '''setCuratorCoef''' [action,coef] |= Syntax
| curatorObj '''setCuratorCoef''' [action,coef] |= Syntax


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


|p2= [action,coef]: [[Array]] |= PARAMETER 2
|p2= [action,coef]: [[Array]] |= PARAMETER 2


|p3= action: [[String]]  |= PARAMETER3
|p3= action: [[String]]  |PARAMETER3=


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


| [[Nothing]] |= RETURNVALUE
| [[Nothing]] |RETURNVALUE=  


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


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


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Curator]] |= SEEALSO
| [[Curator]] |SEEALSO=  


| mp= Can be executed only on server |= MPBEHAVIOUR
| mp= Can be executed only on server |MPBEHAVIOUR=  
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 11:36, 7 April 2019

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).
Multiplayer:
Can be executed only on server
Groups:
Uncategorised

Syntax

Syntax:
curatorObj setCuratorCoef [action,coef]
Parameters:
curatorObj: Object - Curator module.
[action,coef]: Array
action: String
coef: Number or Boolean
Return Value:
Nothing

Examples

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

Additional Information

See also:
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

Notes

Bottom Section

Posted on March 25, 2015 - 21:46 (UTC)
Austin medic
Possible actions are:

place
edit
delete
destroy
group
synchronize