addPublicVariableEventHandler – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
Line 6: Line 6:


:Yes, exactly. But as said, if the variable is pV'ed from the server, the EH won't trigger there. What examples do you want? --[[User:Raedor|raedor]] 11:33, 22 December 2007 (CET)
:Yes, exactly. But as said, if the variable is pV'ed from the server, the EH won't trigger there. What examples do you want? --[[User:Raedor|raedor]] 11:33, 22 December 2007 (CET)
Actually, that depends on latency or something. It's possible to get one PV (well, 2 basically as it's one per machine) to fire EH on both server and client. Easy to repro with one simple radio trigger. --[[User:Shuko|Shuko]] 16:01, 8 October 2009 (CEST)

Revision as of 15:01, 8 October 2009

So this seems like we can remove many server side loops waiting for a publicVariable to change right?

If true can someone submit more examples?


Yes, exactly. But as said, if the variable is pV'ed from the server, the EH won't trigger there. What examples do you want? --raedor 11:33, 22 December 2007 (CET)

Actually, that depends on latency or something. It's possible to get one PV (well, 2 basically as it's one per machine) to fire EH on both server and client. Easy to repro with one simple radio trigger. --Shuko 16:01, 8 October 2009 (CEST)