Data Realms Fan Forums http://45.55.195.193/ |
|
Don't hit own team http://45.55.195.193/viewtopic.php?f=73&t=46106 |
Page 1 of 1 |
Author: | Hoovytaurus [ Tue Dec 06, 2016 6:21 am ] |
Post subject: | Don't hit own team |
I have a lua that spawns grenade fragments from a bullet which a gun fires, but I've had this hit the gun itself and members of my own team. Is there any way to avoid this? This is the code in question. As you can see, I tried to put an IgnoresTeamHits on there, but it has no effect. |
Author: | 4zK [ Tue Dec 06, 2016 12:33 pm ] |
Post subject: | Re: Don't hit own team |
You forgot to assign the team of the spawned particle. |
Author: | Hoovytaurus [ Tue Dec 06, 2016 3:48 pm ] |
Post subject: | Re: Don't hit own team |
4zK wrote: You forgot to assign the team of the spawned particle. That's true, I forgot to bring that up. My 5 minutes of intense prowling failed to find any code or function to change a thing's team. How would I go about that? |
Author: | CaveCricket48 [ Tue Dec 06, 2016 5:38 pm ] |
Post subject: | Re: Don't hit own team |
Effect.Team = self.Team |
Author: | Hoovytaurus [ Tue Dec 06, 2016 7:26 pm ] |
Post subject: | Re: Don't hit own team |
CaveCricket48 wrote: Effect.Team = self.Team Thanks a lot, dude! I kinda forgot self still had a team, so I could just copy it over to Effect. I'll go try this right now! |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |