Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 |
//============================================================================= // DistanceViewTrigger: When triggered, triggers all pawns within its collision radius //============================================================================= class DistanceViewTrigger extends Triggers; function Trigger( actor Other, pawn EventInstigator ) { local Pawn P; for ( P=Level.PawnList; P!=None; P=P.NextPawn ) if ( (abs(Location.Z - P.Location.Z) < CollisionHeight + P.CollisionHeight) && (VSize(Location - P.Location) < CollisionRadius) ) P.Trigger(Other, EventInstigator); } defaultproperties { } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |