Solved Destroy effect prefab

Discussion in 'Rust Development' started by k1lly0u, Dec 5, 2015.

  1. I am using the smoke prefab from the supply signal for a plugin using
    Code:
    Effect.server.Run("assets/bundled/prefabs/fx/smoke_signal_full.prefab", pos);
    The problem is it never stops. I've had a look around but cant seem to find anything on how to destroy it once I'm done with it
     
  2. Wulf

    Wulf Community Admin

    You'd probably need to find it and kill it like any other entity, but unsure.
     
  3. Supply signal effect is handled by client.
    Also we can't directly control any effect from server.
    In this case effect must have parent, the effect will be destroyed along with its parent.
    Code:
    Effect.server.Run("assets/bundled/prefabs/fx/smoke_signal_full.prefab", AnyBaseEntity, 0, Vector3.zero, Vector3.zero, null, false);
     
    Last edited by a moderator: Dec 5, 2015
  4. Thankyou