New Physics Volume Question
Posted: 30-01-2008 23:30
How can I set a 'killing' physics volume to only kill/effect one team ?
Code: Select all
//===============================================
// MyPhysicsVolume.
//===============================================
class MyPhysicsVolume extends PhysicsVolume
placeable;
var(PhysicsVolume) byte team;
event CausePainTo(Actor Other)
{
if(DB_Pawn(Other) != None && team != 255
&& DB_Pawn(Other).PlayerReplicationInfo.Team.TeamIndex != team)
{
return;
}
super.CausePainTo(Other);
}