roleDescription: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - " <dl class="command_description"> </dl>" to "")
Line 21: Line 21:
| [[name]], [[getPlayerUID]], [[vehicleVarName]], [[worldName]], [[briefingName]], [[missionName]], [[serverName]]
| [[name]], [[getPlayerUID]], [[vehicleVarName]], [[worldName]], [[briefingName]], [[missionName]], [[serverName]]
}}
}}
<dl class="command_description">
</dl>


{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|New Scripting Commands}}

Revision as of 19:21, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object ManipulationMultiplayer

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
Return Value:
Return value needed

Examples

Example 1:
_playerRole = roleDescription player;

Additional Information

See also:
See also needed

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 June 29, 2015 - 12:05 (UTC)
Killzone Kid
One thing you should know about roles. When switching to units placed in editor on the fly in MP, it could mess up the role of the player. Could be bug, could be intended, but I would not recommend doing this. Create new unit dynamically if you need to switch to. Anyway, if role of the unit is messed up so is roleDescription.
Posted on May 26, 2017 - 01:10 (UTC)
Pierre MGI
roleDescription works for playableUnits only. That means not on AI disabled in lobby and not in SP (even for player).