selectNoPlayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(note fix)
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


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


| '''selectNoPlayer''' |= Syntax
|game4= arma3
|version4= 0.50


|p1= |= PARAMETER1
|gr1= Object Manipulation


|p2= |= PARAMETER2
|descr= Switches player to no unit, makes [[player]] return [[objNull]].


|p3= |= PARAMETER3
|mp= Does '''not''' work in multiplayer.


| [[Nothing]] |= RETURNVALUE
|s1= [[selectNoPlayer]]


|r1= [[Nothing]]


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


____________________________________________________________________________________________
|seealso= [[selectPlayer]]
}}


| [[selectPlayer]] |= SEEALSO
<dl class="command_description">


| mp=Works only in Single Player |= MPBEHAVIOUR
<dt></dt>
____________________________________________________________________________________________
}}
 
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<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.
[[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>
<!-- Note Section END -->
</dl>


<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{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>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 19:43, 3 September 2024

Hover & click on the images for description

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.