selectNoPlayer: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m (example how to emulate in MP) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 58: | Line 58: | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on May 2, 2015 - 12:50 (UTC)</dd> | |||
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt> | |||
<dd class="note"> | |||
SP only. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 13:50, 2 May 2015
Description
- Description:
- Switch player to no unit.
- Multiplayer:
- Works only in Single Player
- Groups:
- Uncategorised
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
-
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.
--Worldeater 09:48, 15 October 2010 (CEST)
Bottom Section
- Posted on May 2, 2015 - 12:50 (UTC)
- Killzone Kid
- SP only.