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: NearestObject (Bullets?)  (Read 1433 times)

0 Members and 1 Guest are viewing this topic.

Offline Rommel92

  • Members
  • *
NearestObject (Bullets?)
« on: 31 Mar 2008, 06:41:14 »
How do I detect if a bullet has just wizzed past the players head, nearestObject isn't been friendly  :) .
Simple, but I still don't get where to post these sort of questions, I'd think general, but its not to do with cutscenes... ???
Code: [Select]
_nObject = getpos player nearObjects ["GrenadeHand", 100];

Now how do you convert this to bullets  ???

 :D

Nevermind!
This did it :P
Code: [Select]
_nObject = getpos player nearObjects ["BulletBase", 100];
« Last Edit: 31 Mar 2008, 07:00:09 by rommel92 »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: NearestObject (Bullets?)
« Reply #1 on: 31 Mar 2008, 08:30:42 »
Quote
Simple, but I still don't get where to post these sort of questions, I'd think general, but its not to do with cutscenes
Scripting question that are simple go to the general, it holds much more than just cutscene related questions.. :)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.