addEventHandler – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
I talked to hoz and he meant I should post an example of how the new [[Template: Command]] would look in reality. Here is what you would get of the given source code. Any comments please? Use it for the rest of the commands? Alter it? --[[User:Hardrock|hardrock]] 20:40, 31 July 2006 (CEST)
Join In Progress: if a client runs [[addEventHandler]], people that are currently connected automatically add the event too, right? If a client connects AFTER the fact, do they not add the event? If not then do I need to put [[addEventHandler]] in [[setVehicleInit]] instead? Won't this mean everyone runs the command and (if 7 people are on) 7 "killed" even handlers get added to same object? --[[User:Doolittle|Doolittle]] 21:08, 12 March 2008 (CET)

Latest revision as of 22:08, 12 March 2008

Join In Progress: if a client runs addEventHandler, people that are currently connected automatically add the event too, right? If a client connects AFTER the fact, do they not add the event? If not then do I need to put addEventHandler in setVehicleInit instead? Won't this mean everyone runs the command and (if 7 people are on) 7 "killed" even handlers get added to same object? --Doolittle 21:08, 12 March 2008 (CET)