# GetPlayerVal

Get*Val
5.1 OC
any
string entry Name of the entry to be retrieved.
string section Section of the entry to be retrieved. If not specified, all sections will be searched for an entry of the specified name.
int player Number of the player of which you want to retrieve an entry.
int entry_number Index of the value to be retrieved if an entry contains multiple values.
Retrieves properties of a player by way of the name under which they are stored in the Game.txt component of a savegame.
Warning: the retrieved values may not be synchronization safe, meaning they may differ from computer to computer in a network game. Using these values may cause sync loss in a network game.
Most useful applications for entry are already implemented in System.ocg/GetXVal.c.
Log
("Player %d has %d objects!", player, GetPlrObjectsOwned(player));
Writes the number of objects owned by this player into the log file.
GetDefCoreVal
GetObjectVal
GetObjectInfoCoreVal
GetActMapVal
GetScenarioVal
GetPlayerInfoCoreVal
PeterW
2002-04