コード例 #1
0
    public void FireEffect(float precision, int seed)
    {
        FireEffectEvent evnt = FireEffectEvent.Create(entity, EntityTargets.EveryoneExceptOwnerAndController);

        evnt.Precision = precision;
        evnt.Seed      = seed;
        evnt.Send();
    }
コード例 #2
0
    //
    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();
    }
コード例 #3
0
 public override void OnEvent(FireEffectEvent evnt)
 {
     _playerWeapons.FireEffect(evnt.Seed, evnt.Precision);
 }