selectPlayer

From Bohemia Interactive Community
Revision as of 11:56, 16 June 2010 by Besselinksjm (talk | contribs) (Rewritten someone else's comments.)
Jump to navigation Jump to search
-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