PDA

View Full Version : block a model which is moving



ORDI
2nd June 2015, 17:27
Hello everybody

i would like to know if it's possible to block a script_model which is moving ? and script_brushmodel ?

if it's possible, please tell me.

ORDI
xf: ordi37zk

Ni3ls
2nd June 2015, 18:08
What do you mean with blocking?

ORDI
2nd June 2015, 19:46
example: an elevator which is moving and suddenly, there is something which spawn and it block the elevator so it cant move correctly.

serthy
2nd June 2015, 20:03
example: an elevator which is moving and suddenly, there is something which spawn and it block the elevator so it cant move correctly.

check every entity with
entity isTouching( player ) like every second, and if some players that are touching the entity AND not change their position AND while your entity should move AND is also not changing its position, you could set the players origin or kill'em

ORDI
2nd June 2015, 20:31
already try, but it do not work, it's model to entity because the thing which spawn is made from the script ( thing = spawn(...); )
The entity must block the model when it is moving

filthy_freak_
2nd June 2015, 21:22
Try



thing waittill("forever");


or



thing moveTo(thing getOrigin(), 0, 0, 0);


every second.

IzNoGoD
2nd June 2015, 23:09
just set the .origin of your elevator and it will stop in the middle of a moveto/movex/movey/movez.