6819 {
6821 if (can_be_dropped)
6822 {
6824 }
6825
6826 vector pos_spawn =
GetPosition() + GetDirection();
6827 pos_spawn[0] = pos_spawn[0] + Math.RandomFloat(-0.2, 0.2);
6828 pos_spawn[2] = pos_spawn[2] + Math.RandomFloat(-0.2, 0.2);
6829
6830 item.SetPosition(pos_spawn);
6831 item.PlaceOnSurface();
6832 return can_be_dropped;
6833 }
override bool PredictiveDropEntity(notnull EntityAI item)
override bool CanDropEntity(notnull EntityAI item)
vector GetPosition()
Get the world position of the Effect.