Data Realms Fan Forums http://45.55.195.193/ |
|
Script on Increasing Variable(s) http://45.55.195.193/viewtopic.php?f=73&t=19122 |
Page 1 of 1 |
Author: | CaveCricket48 [ Mon Jun 28, 2010 3:56 am ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |