set3DENMissionAttributes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return value of [[Eden_Editor:_Scenario_Atttributes|scenario attribute]]. |= Description
| Set [[Eden_Editor:_Scenario_Atttributes|scenario attributes]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| section '''get3DENMissionAttribute''' class |= Syntax
| '''set3DENMissionAttributes''' <nowiki>[[<section>,<class1>,<value1>], ..., [<section >,<classN>,<valueN>]]</nowiki> |= Syntax
|p1= section: [[String]] - attribute section |= PARAMETER1
|p1= section: [[String]] - attribute section |= PARAMETER1
|p2= class: [[String]] - attribute name |= PARAMETER2
|p2= class: [[String]] - attribute name |= PARAMETER2
| [[Anything]] |= RETURNVALUE  
|p3= value: [[Any]] - new attribute value |= PARAMETER3
| [[Bool]] - [[true]] if the value was set |= RETURNVALUE  


|x1= <code>[[systemChat]] [[str]] ("Multiplayer" get3DENMissionAttribute "respawn");</code> |= EXAMPLE1  
|x1= <code>set3DENMissionAttributes <nowiki>[[</nowiki>"Multiplayer","respawn",3],["Multiplayer","respawnDelay",10]];</code>
Set respawn type to 3 and respawn delay to 10 seconds |= EXAMPLE1  
____________________________________________________________________________________________
____________________________________________________________________________________________


|  
|  
[[set3DENMissionAttribute]]
[[get3DENMissionAttribute]]
  |= SEEALSO  
  |= SEEALSO  
|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 14:48, 12 November 2015

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.52|1.52]]
Hover & click on the images for description

Description

Description:
Set scenario attributes.
Groups:
Uncategorised

Syntax

Syntax:
set3DENMissionAttributes [[<section>,<class1>,<value1>], ..., [<section >,<classN>,<valueN>]]
Parameters:
section: String - attribute section
class: String - attribute name
value: Any - new attribute value
Return Value:
Bool - true if the value was set

Examples

Example 1:
set3DENMissionAttributes [["Multiplayer","respawn",3],["Multiplayer","respawnDelay",10]]; Set respawn type to 3 and respawn delay to 10 seconds

Additional Information

See also:
get3DENMissionAttribute

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

[[Category:Introduced with arma3dev version 1.52]][[ Category: arma3dev: New Scripting Commands | SET3DENMISSIONATTRIBUTES]][[ Category: arma3dev: Scripting Commands | SET3DENMISSIONATTRIBUTES]]

Notes


Bottom Section