public void FireEffect(float precision, int seed) { FireEffectEvent evnt = FireEffectEvent.Create(entity, EntityTargets.EveryoneExceptOwnerAndController); evnt.Precision = precision; evnt.Seed = seed; evnt.Send(); }
// public void FireEffect(float precision, int seed) { //Notre joueur dit a tout le monde sauf au server de creer l'effet de tire avec des balles tracantes FireEffectEvent evnt = FireEffectEvent.Create(entity, EntityTargets.EveryoneExceptOwnerAndController); evnt.Precision = precision; evnt.Seed = seed; evnt.Send(); }
public override void OnEvent(FireEffectEvent evnt) { _playerWeapons.FireEffect(evnt.Seed, evnt.Precision); }