OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: snYpir on 18 May 2003, 06:31:48

Title: player = ? on dedicated server?
Post by: snYpir on 18 May 2003, 06:31:48
What does the 'player' variable equal on a dedicated server? ie on the actual server machine?
Title: Re:player = ? on dedicated server?
Post by: snYpir on 18 May 2003, 06:41:20
Answering my own question...

It equals <NULL-object>. So the following can be used to determine if a script is running on the dedicated server machine:

? format["%1",player] == "<NULL-object>" : hint "i am on the ded server"

;D