Hi! 
I have a little problem with a volume..
I want to set the collision on when a Player from one team touch it! This is my code inside my custom volume class..
ok.. but i get errors like ""blockActors const values can't be changed" o stuff like that.. so my question is, How do I change the "blockActors" properties dynamically inside my BrushComponent0?
I'm reading the UDN every day without success ... so I'll be very grateful if someone can give a hand with this!
Thanks!
and sorry for my bad English!

I have a little problem with a volume..
I want to set the collision on when a Player from one team touch it! This is my code inside my custom volume class..
Code:
event Touch( Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal ) { local brushcomponent brushcomponent0; local int TeamNum; local Pawn P; P=pawn(other); TeamNum=p.GetTeam().TeamIndex ; if (TeamNum == 0) { BrushComponent0 = new(self) class'BrushComponent'; BrushComponent0.BlockActors=true; BrushComponent0.BlockZeroExtent=true; BrushComponent0.BlockNonZeroExtent=true; BrushComponent0.BlockRigidBody=true; AttachComponent(BrushComponent0); ClientMessage('BLOCK RED TEAM'); } else if (TeamNum == 1) { //more stuff like blockactors = false for blue team.. etc.. } }
I'm reading the UDN every day without success ... so I'll be very grateful if someone can give a hand with this!
Thanks!


Comment