ObjectTemplate.AddToCollisionGroup

Ask questions, discuss ideas, get answers
Post Reply
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

ObjectTemplate.AddToCollisionGroup

Post by BotHunter »

Hello all!!
Is there a way to make the object collide with only projectiles using ObjectTemplate.AddToCollisionGroup??
Thanks!
Walk quietly and carry a sniper rifle
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: ObjectTemplate.AddToCollisionGroup

Post by BotHunter »

Anyone?? (I doesn't have to use "addtocolisiongroup")
Walk quietly and carry a sniper rifle
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: ObjectTemplate.AddToCollisionGroup

Post by freddy »

possibly try make the object of some unlisted material, it works for projectiles
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: ObjectTemplate.AddToCollisionGroup

Post by BotHunter »

I want basically a wall that people and vehicles can go through, but you cant shoot through. Maybe Apache would have a suggestion? :mrgreen:
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: ObjectTemplate.AddToCollisionGroup

Post by Vilespring »

Apache actually posted something like you said, but it will be harder to implement, because you gonna have to add it to ALL the vehicles, and people cannot go through it. and, then vehicles would go trough each other. Just make a geometry without a collision mesh 1 (I think, that is vehicles and buildings) and keep a visual mesh and the projectile mesh. Now, infantry won't be able to go through, so make something like a door in it.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: ObjectTemplate.AddToCollisionGroup

Post by freddy »

edit, did not work :/
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: ObjectTemplate.AddToCollisionGroup

Post by BotHunter »

this is what I'm attempting: :) Image
Walk quietly and carry a sniper rifle
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: ObjectTemplate.AddToCollisionGroup

Post by Apache Thunder »

Yes, I thought about suggesting using the unused collision group. BUT. Here's the problem.

It doesn't work on soldiers very well. As soon as a soldier enters a vehicle and then leaves it, the collision group assigned to him gets lost. The player would have to die and respawn for it to work again. So it won't work for you if you intend to include soldiers in this system. :(
ImageImageImage
I have cameras in your head!
Post Reply