selectNoPlayer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Switches player to no unit, makes [[player]] return [[objNull]]. SP only, the command is completely ignored in MP. | | Switches player to no unit, makes [[player]] return [[objNull]]. SP only, the command is completely ignored in MP. | ||
| '''selectNoPlayer''' | | '''selectNoPlayer''' | ||
|p1 | |p1= | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Nothing]] | | [[Nothing]] | ||
Line 34: | Line 34: | ||
[[selectPlayer]] _noPlayer; | [[selectPlayer]] _noPlayer; | ||
[[hint]] [[str]] [[player]]; //L Charlie 4-3:1 (KK)</code> | [[hint]] [[str]] [[player]]; //L Charlie 4-3:1 (KK)</code> | ||
| mp=Works only in Single Player | | [[selectPlayer]] | ||
| mp=Works only in Single Player | |||
}} | }} | ||
Revision as of 11:01, 18 January 2021
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.