6498 {
6500 if (can_be_dropped)
6501 {
6503 }
6504
6505 vector pos_spawn =
GetPosition() + GetDirection();
6506 pos_spawn[0] = pos_spawn[0] + Math.RandomFloat(-0.2, 0.2);
6507 pos_spawn[2] = pos_spawn[2] + Math.RandomFloat(-0.2, 0.2);
6508
6509 item.SetPosition(pos_spawn);
6510 item.PlaceOnSurface();
6511 return can_be_dropped;
6512 }
override bool PredictiveDropEntity(notnull EntityAI item)
override bool CanDropEntity(notnull EntityAI item)
vector GetPosition()
Get the world position of the Effect.