player: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (+ Note about intros and outros)
Line 31: Line 31:


The variable '''player''' is not always initialised at startup of a mission, you have to add a (very short) delay before you can use it.
The variable '''player''' is not always initialised at startup of a mission, you have to add a (very short) delay before you can use it.
'''Intro/Outro:'''
The variable '''player''' is not defined at all, but you can give name '''player''' to unit which is marked as player.

Revision as of 09:45, 21 July 2006


player


Operand types:

None

Type of returned value:

Object

Description:

Person controled by player.

In MP this value is different on each computer.


Example:

player addrating 500


MP Note:

The variable player is not always initialised at startup of a mission, you have to add a (very short) delay before you can use it.

Intro/Outro:

The variable player is not defined at all, but you can give name player to unit which is marked as player.