Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: and away it flies...  (Read 739 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 »