selectNoPlayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 8: Line 7:
|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=


____________________________________________________________________________________________


| Switches player to no unit, makes [[player]] return [[objNull]]. SP only, the command is completely ignored in MP.|DESCRIPTION=
| Switches player to no unit, makes [[player]] return [[objNull]]. SP only, the command is completely ignored in MP.|DESCRIPTION=
____________________________________________________________________________________________


| '''selectNoPlayer''' |SYNTAX=
| '''selectNoPlayer''' |SYNTAX=
Line 39: Line 36:
|EXAMPLE1=  
|EXAMPLE1=  


____________________________________________________________________________________________


| [[selectPlayer]] |SEEALSO=  
| [[selectPlayer]] |SEEALSO=  


| mp=Works only in Single Player |MPBEHAVIOUR=  
| mp=Works only in Single Player |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 03:44, 17 January 2021

Hover & click on the images for description

Description

Description:
Switches player to no unit, makes player return objNull. SP only, the command is completely ignored in MP.
Multiplayer:
Works only in Single Player
Groups:
Object Manipulation

Syntax

Syntax:
selectNoPlayer
Return Value:
Nothing

Examples

Example 1:
Single player: selectNoPlayer; hint str player; //<NULL-object> Rough multiplayer emulation: _noPlayer = createGroup sideLogic createUnit [ "Logic", [0,0,1000], [], 0, "NONE" ]; selectPlayer _noPlayer; hint str player; //L Charlie 4-3:1 (KK)

Additional Information

See also:
selectPlayer

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 09:48, 15 October 2010 (CEST)
Worldeater
Player returns objNull after this command has been used. It also has at least the following side effects: closeDialog won't work anymore and onKeyDown event handlers cease to detect the ESC key. In order to get things back to normal a new player object has to be set with selectPlayer. Using objNull won't cut it in this case.

Bottom Section