selectNoPlayer: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Switches player to no unit, makes [[player]] return [[objNull]] | |descr= Switches player to no unit, makes [[player]] return [[objNull]]. | ||
| ''' | |mp= Does '''not''' work in multiplayer. | ||
|s1= [[selectNoPlayer]] | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 23: | Line 25: | ||
|x1= Single player: | |x1= Single player: | ||
<code>[[selectNoPlayer]]; | <code>[[selectNoPlayer]]; | ||
[[hint]] [[str]] [[player]]; | [[hint]] [[str]] [[player]]; {{cc|<NULL-object>}}</code> | ||
Rough multiplayer emulation: | Rough multiplayer emulation: | ||
<code>_noPlayer = [[createGroup]] [[sideLogic]] [[createUnit]] [ | <code>_noPlayer = [[createGroup]] [[sideLogic]] [[createUnit]] [ | ||
Line 33: | Line 35: | ||
]; | ]; | ||
[[selectPlayer]] _noPlayer; | [[selectPlayer]] _noPlayer; | ||
[[hint]] [[str]] [[player]]; | [[hint]] [[str]] [[player]]; {{cc|L Charlie 4-3:1 (KK)}}</code> | ||
| [[selectPlayer]] | |seealso= [[selectPlayer]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted 09:48, 15 October 2010 (CEST)</dd> | <dd class="notedate">Posted 09:48, 15 October 2010 (CEST)</dd> | ||
<dt class="note">[[User:Worldeater|Worldeater]] </dt> | <dt class="note">[[User:Worldeater|Worldeater]] </dt> | ||
<dd class="note"> | <dd class="note"> | ||
[[player | [[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. | ||
</dd> | </dd> | ||
</dl> | </dl> | ||
Revision as of 10:10, 11 June 2021
Description
- Description:
- Switches player to no unit, makes player return objNull.
- Multiplayer:
- Does not work in multiplayer.
- 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
- 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.