Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Last Nuclear Glory Questions

Author
Message
Hoss
20
Years of Service
User Offline
Joined: 7th Jun 2004
Location: Someplace with a PC
Posted: 24th Jul 2004 02:28
Finishing up shooting, I have the paintball splat ending up where I want it to, but I still have errors, I get the message "Collision idnex out of range: 1". Can somebody please try to help me fix this?



Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 24th Jul 2004 03:07
If the collision index of 1 doesn't exist, a collision didn't occur for the corresponding object. Basically, before you use any command that references the collision data, you need to test to see if a collision actually occured, with a command like:

if CountCollisionsPro(bulletObj) > 0
endif

That way, you won't be grabbing the collision information unless a collision actually happened.

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 24th Jul 2004 03:39
Yes, that's correct.

Thanks Fallout

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 24th Jul 2004 05:59
I'll be having your job next!

nuclear glory
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 24th Jul 2004 06:27
lol, I know it. Don't tell the guys back at base

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com

Login to post a reply

Server time is: 2024-09-22 08:42:49
Your offset time is: 2024-09-22 08:42:49