roleDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.48 | |||
| | |gr1= Object Manipulation | ||
| | |gr2= Multiplayer | ||
| | |descr= Returns unit description set in the editor and visible on role selection screen in multiplayer. | ||
| | |pr= '''Does not''' work in single player. | ||
| [[ | |s1= [[roleDescription]] unit | ||
| | |p1= unit: [[Object]] | ||
| [[ | |r1= [[String]] | ||
|x1= <sqf>_playerRole = roleDescription player;</sqf> | |||
|seealso= [[name]] [[getPlayerUID]] [[vehicleVarName]] [[worldName]] [[briefingName]] [[missionName]] [[serverName]] | |||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20150629120500 | |||
|text= 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]]. | |||
}} | |||
{{Note | |||
|user= Pierre MGI | |||
|timestamp= 20170526011000 | |||
|text= [[roleDescription]] works for playableUnits only. That means not on AI disabled in lobby and not in SP (even for player). | |||
}} | |||
Latest revision as of 00:46, 22 July 2022
Description
- Description:
- Returns unit description set in the editor and visible on role selection screen in multiplayer.
- Problems:
- Does not work in single player.
- Groups:
- Object ManipulationMultiplayer
Syntax
- Syntax:
- roleDescription unit
- Parameters:
- unit: Object
- Return Value:
- String
Examples
- Example 1:
Additional Information
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 Jun 29, 2015 - 12:05 (UTC)
- 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)
- roleDescription works for playableUnits only. That means not on AI disabled in lobby and not in SP (even for player).