OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Doffen74 on 12 Jan 2004, 23:32:09

Title: Player1 - Myself Player2 - ?
Post by: Doffen74 on 12 Jan 2004, 23:32:09
Hi. Is it possible to find the players in the game using a script.
I know that you can find yourself using the PLAYER command.
Title: Re:Player1 - Myself Player2 - ?
Post by: Chris Death on 13 Jan 2004, 00:51:02
Yes it's possible:

basically player returns the player on each machine

so: player sidechat "hello"

will appear to everyone, as if he would have said that

Doffen74: "hello"
ChrisDeath: "hello"
etc.

Also there are other ways of getting the players, depending
on what you want to do.

e.g: playersNumber side

returns the number of players, playing on given side

(taken from da comref)

As i said, there's more you can do, but it would be helpful
to know, what you want to do, before posting a lot of stuff,
which you do not really need  ;D

~S~ CD