get3DENMissionAttribute: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.52|= Game version ______________...")
 
m (Text replacement - ">Posted on November ([0-9]{1})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-11-0$1")
 
(61 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.56


|1.52|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


| Set [[Eden_Editor:_Scenario_Atttributes|scenario attributes]]. |= Description
|descr= Return value of [[Eden_Editor:_Scenario_Atttributes|scenario attribute]]. For a list of all available mission attributes see [[Eden_Editor:_Setting_Attributes#Scenario|Mission Attributes]].
____________________________________________________________________________________________
{{Feature|important|Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!}}


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


|x1= <code>set3DENMissionAttributes <nowiki>[[</nowiki>"Multiplayer","respawn",3],["Multiplayer","respawnDelay",10]];</code>
|p1= section: [[String]] - attribute section. See [[Eden_Editor:_Setting_Attributes#Sections_.26_Properties|Sections & Properties]]
Set respawn type to 3 and respawn delay to 10 seconds |= EXAMPLE1
|p2= class: [[String]] - attribute name
____________________________________________________________________________________________
|r1= [[Anything]]


|  
|x1= <sqf>systemChat str ("Multiplayer" get3DENMissionAttribute "respawn");</sqf>
[[get3DENMissionAttribute]]
 
|= SEEALSO
|seealso=  
| |= MPBEHAVIOUR
[[set3DENMissionAttributes]]
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
 
<!-- Note Section BEGIN -->
<dt></dt>
<!-- Note Section END -->
<dd class="notedate">Posted on 2016-02-26 - 16:54 (UTC)</dd>
</dl>
<dt class="note">[[User:R3vo|R3vo]]</dt>
<!-- DISCONTINUE Notes -->
<dd class="note">
The class names of the vanilla sections are:
{| class="wikitable"
|-
! Display Name !! Class Name (section)
|-
| Environment || Intel
|-
| Multiplayer || Multiplayer
|-
| Performance || GarbageCollection
|-
| Preferences|| Preferences
|}
</dd>


<dt><dt>
<dd class="notedate">Posted on 2020-11-02 - 16:57 (UTC)</dd>
<dt class="note">[[User:R3vo|R3vo]]</dt>
<dd class="note">
It seems that [[Eden_Editor:_Configuring_Attributes#Preferences|Preferences]] can be returned just fine during preview.
</dd>


<h3 style='display:none'>Bottom Section</h3>
</dl>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:12, 14 May 2023

Hover & click on the images for description

Description

Description:
Return value of scenario attribute. For a list of all available mission attributes see Mission Attributes.
Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!
Groups:
Eden Editor

Syntax

Syntax:
section get3DENMissionAttribute class
Parameters:
section: String - attribute section. See Sections & Properties
class: String - attribute name
Return Value:
Anything

Examples

Example 1:
systemChat str ("Multiplayer" get3DENMissionAttribute "respawn");

Additional Information

See also:
set3DENMissionAttributes

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
Posted on 2016-02-26 - 16:54 (UTC)
R3vo
The class names of the vanilla sections are:
Display Name Class Name (section)
Environment Intel
Multiplayer Multiplayer
Performance GarbageCollection
Preferences Preferences
Posted on 2020-11-02 - 16:57 (UTC)
R3vo
It seems that Preferences can be returned just fine during preview.