setPlayable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= Broken Commands |GROUP1=
|gr1= Broken Commands


|gr2= Multiplayer |GROUP2=
|gr2= Multiplayer


| Create MP role for the unit. The roles created this way are used for [[Multiplayer Scripting#Join In Progress|Join In Progress]] and [[Team Switch]].  
| Create MP role for the unit. The roles created this way are used for [[Multiplayer Scripting#Join In Progress|Join In Progress]] and [[Team Switch]].  


|pr= {{Warning | Doesn't work as intended - does currently nothing in {{arma3}}.}} |DESCRIPTION=
|pr= {{Warning | Doesn't work as intended - does currently nothing in {{arma3}}.}}


| '''setPlayable''' unitName |SYNTAX=
| '''setPlayable''' unitName


|p1= unitName: [[Object]] |PARAMETER1=
|p1= unitName: [[Object]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>[[setPlayable]] _aPerson</code> |EXAMPLE1=
|x1= <code>[[setPlayable]] _aPerson</code>


| |SEEALSO=
|
}}
}}



Revision as of 12:09, 18 January 2021

Hover & click on the images for description

Description

Description:
Create MP role for the unit. The roles created this way are used for Join In Progress and Team Switch.
Problems:
Doesn't work as intended - does currently nothing in Arma 3.
Groups:
Broken CommandsMultiplayer

Syntax

Syntax:
setPlayable unitName
Parameters:
unitName: Object
Return Value:
Nothing

Examples

Example 1:
setPlayable _aPerson

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

Notes

Posted on december 19, 2009 - 22:48
Lou Montana
if you want to add a TeamSwitchable unit (at least in Arma 2), better use addSwitchableUnit