selectPlayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Rewritten someone else's comments.)
Line 27: Line 27:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
selectPlayer brings some Problems with it:
Notes on selectPlayer in multiplayer environments:
MP-Section: In Multiplayer section you can use it, but be careful!
If the unit of "selectPlayer unit" is not local, you will be in the body of the "unit", but you don't have the control about the unit. The Control of the Unit lies there, were the unit is local too (for example a server, if the Leader unit is on the server, or another client, if the Leader or first client of a unit is in its group).
The second problem is the Identity: if your old unit dies - it will count also to your Identity.
The third problem is: Your old Unit will still be identifiable as you (means if you aim at the unit). Your new Unit will keep it's name, face and voice (face is settable dynamically, name, voice and glasses have to be defined before mission started in the description.ext).
fourth problem: If you want to chat - the name of your new unit will be used as writer


SP-Section:
1) If you switch to a unit that's not local, control will not be given to you immidiately. For example, if you switch to an AI unit whose leader is a player, you will not be able to control the movement of your new avatar, as its control remains with the leader unit.
locality doesn't matter in SP because all units are local, but:
Maybe Points-sharing for Missiongoals and Kills may not work correctly.
The thrid problem of MP is also in Single Player.


further versions then 1.16 (I did the experiments with 1.16beta) may crash while using in Multiplayer!
2) The identity of units are not transferred properly: If your old unit dies, this will count for your stats. Your old unit might remain identifiable as you (if you aim at the unit you see your own name). Your new unit will keep it's name, face and voice (face can be set dynamically, but name, voice and glasses have to be defined before mission start in the description.ext). When chatting, not the name of your original identity, but the identity of the transferred to person will show.
 
Further versions then 1.16 (I did the experiments with 1.16beta) may crash while using in Multiplayer!
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 11:56, 16 June 2010

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Switch player to given person.
Groups:
Uncategorised

Syntax

Syntax:
selectPlayer unitName
Parameters:
unitName: Object
Return Value:
Nothing

Examples

Example 1:
selectPlayer _aPerson

Additional Information

See also:
switchCamera

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

Notes on selectPlayer in multiplayer environments: 1) If you switch to a unit that's not local, control will not be given to you immidiately. For example, if you switch to an AI unit whose leader is a player, you will not be able to control the movement of your new avatar, as its control remains with the leader unit. 2) The identity of units are not transferred properly: If your old unit dies, this will count for your stats. Your old unit might remain identifiable as you (if you aim at the unit you see your own name). Your new unit will keep it's name, face and voice (face can be set dynamically, but name, voice and glasses have to be defined before mission start in the description.ext). When chatting, not the name of your original identity, but the identity of the transferred to person will show. Further versions then 1.16 (I did the experiments with 1.16beta) may crash while using in Multiplayer!

Bottom Section