selectPlayer

From Bohemia Interactive Community
Revision as of 00:11, 3 March 2010 by SnowSky (talk | contribs)
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

selectPlayer brings some Problems with it: 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: 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!

Bottom Section