5133p39
Mar 13 2007, 04:14
You probably think, that there is enough topics about the MP locality problems, and that everything should be clear to anyone.
Well, hear me, please.
I am starting to be confused regarding various statements which say this or that is "Local".
For example, on the ArmA: Event Handlers (http://community.bistudio.com/wiki/ArmA:_Event_Handlers) page is written that the event handler "killed" is Local.
But what does it mean?
Does it mean it is local to the machine where the killed unit is local?
Or is it local to the machine where the event handler was set?
To more clarify what am i asking, here is an example:
If i add the "killed" event handler to the player unit, and i make sure i run this addEventHandler command on the dedicated server only, where will be run the script it is refering to?
on the player machine because there the player unit is local? or on the server machine because i run the addEventHandler command there?
eg. if i run this on the server:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">p1 addEventHandler ["killed", {_this Spawn sEhKilled}];[/QUOTE]Where is going to be the sEhKilled script executed when the p1 (player) is killed?
I would think that it will be executed on the machine where the addEventHandler command was run - that seems logical, but is it really?
I am really really very confused with this "local" term.
Well, hear me, please.
I am starting to be confused regarding various statements which say this or that is "Local".
For example, on the ArmA: Event Handlers (http://community.bistudio.com/wiki/ArmA:_Event_Handlers) page is written that the event handler "killed" is Local.
But what does it mean?
Does it mean it is local to the machine where the killed unit is local?
Or is it local to the machine where the event handler was set?
To more clarify what am i asking, here is an example:
If i add the "killed" event handler to the player unit, and i make sure i run this addEventHandler command on the dedicated server only, where will be run the script it is refering to?
on the player machine because there the player unit is local? or on the server machine because i run the addEventHandler command there?
eg. if i run this on the server:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">p1 addEventHandler ["killed", {_this Spawn sEhKilled}];[/QUOTE]Where is going to be the sEhKilled script executed when the p1 (player) is killed?
I would think that it will be executed on the machine where the addEventHandler command was run - that seems logical, but is it really?
I am really really very confused with this "local" term.