Projectile Explode Eventhandler triggers 1 frame before or same frame but atleast before Hit Eventhandler for Local Grenades but triggers 1 frame after the Explosion of Grenades from other clients.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
1.Host a game with a second client
2.Add Hit Eventhandler on both of you
player addEventHandler ["Hit", {systemchat (str ["Hit",servertime,diag_frameNo]);}];
3.Add Fired Eventhandler on both of you
player addEventHandler ["Fired", { params ["_player", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; //Putting Eventhandler on your grenade _projectile addEventHandler ["Explode", {systemchat str ["Explode Client Grenade",[servertime,diag_frameNo]];}]; //Putting Eventhandler on your second client so he triggers the explosion as well [_projectile,{ _this addEventHandler ["Explode", {systemchat str ["Explode Global Grenade",[servertime,diag_frameNo]];}];}]remoteExecCall ["call", 0]; }];
- Throw a grenade yourself and let the second client throw one. Make sure to get hit by both of them, so you can compare