PDA

View Full Version : Remote Client or Host


theOden
01-10-2015, 10:21 AM
Anyone knows how to determine if code is run at a hosting player or a connected to elsewhere "remote" player?

I guess the answer lies down somewhere close to gpRemotePlayers but I suspect that for the "to server connected client" gpPlayer is still the local player and gpRemote are all others?

In ArmA I had the isServer and isDedicated, can I possibly build similar functions myself here?
(I assume if gpPlayer == null code is running on a dedicated setup, but I'm not sure how you guys setup ded's despite reading those threads :) )