Home   Help Search Login Register  

Author Topic: and away it flies...  (Read 629 times)

0 Members and 1 Guest are viewing this topic.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
and away it flies...
« on: 28 Oct 2005, 10:41:47 »
setvelocity doesn't work on static objects, right? just on units.

so how do i stop an object from flying away when shot? i have a computer affixed to a wall, and assuming the player goes nuts and shoots it (instead of interacting with it normally  ::) ) i want it to stay on the wall.

i've added an event handler such that if it's hit, the damage is set to 0, and it's setpos/setdir'd to its original position. that part works, but having been shot, it's already in 'flying' mode, and bounces away again...

 :-\

EDIT - nevermind. i set up a replacement script which quickly deletes the shot computer and sticks a new one on.
« Last Edit: 28 Oct 2005, 10:52:08 by bedges »