View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:17 am



Reply to topic  [ 1 post ] 
 Script on Increasing Variable(s) 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Script on Increasing Variable(s)
There are several ways you could do this.

1. Check and see if the bullet's velocity's magnitude is what its supposed to be if it hasn't hit anything. If the magnitude is off by X amount, delete the bullet.

2. Cast an ObstacleRay in the direction of the bullet's velocity, and give the ray the same magnitude as the bullet's velocity. If the ObstacleRay detects anything, delete the bullet.

Oh, and to delete something, "self.ToDelete = true" will work.

That's all I got.


Mon Jun 28, 2010 3:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.091s | 13 Queries | GZIP : Off ]