Hey there,
is spawn an entity on a position. So its posible to move the entity to new position without respawning?
I'm testing for a new plugin that creates big smoke behind an airdrop
sir
Solved Moving an entity without respawning?
Discussion in 'Rust Development' started by Sir BenSon, Nov 8, 2016.
-
I may be wrong, but I think some things like smoke are actually FX, and the FX itself cannot be moved.
You would need to stop, remove and restart it at each position. Maybe
lol. -
Ah okay thank so i spawn en entity, set an timer and destroy them.
Is that the right and good way?
Code:void SpawnEntity(Vector3 pos, float time) { BaseEntity ent = GameManager.server.CreateEntity("fx....", pos, new Quaternion()); ent.Spawn(); timer.Once(time, () => { ent.Kill(); }); }Last edited by a moderator: Nov 8, 2016
