Core.Object | +--Engine.Actor | +--Engine.Brush | +--Engine.Volume | +--XIDCine.ZigouillateurVolume
Array
PersosAZigouiller
void
Touch(Actor Other)
//_____________________________________________________________________________
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class ZigouillateurVolume extends Volume; 00005 00006 VAR() Array<Actor> PersosAZigouiller; 00007 00008 //_____________________________________________________________________________ 00009 FUNCTION Touch (actor Other) 00010 { 00011 LOCAL int i; 00012 00013 if ( Pawn(Other)!=none && Pawn(Other).Controller.bIsPlayer ) 00014 { 00015 for (i=0;i<PersosAZigouiller.Length;i++) 00016 { 00017 if (PersosAZigouiller[i] != none) 00018 { 00019 if ( (XIIIPawn(PersosAZigouiller[i]) == none) || (XIIIPlayerPawn(Other) == none) ) 00020 PersosAZigouiller[i].Destroy(); 00021 else 00022 { // destroy only if not visible and not in player's hand 00023 if ( !Pawn(Other).Controller.CanSee(Pawn(PersosAZigouiller[i])) 00024 && ( XIIIPawn(PersosAZigouiller[i]) != XIIIPlayerPawn(Other).LHand.pOnShoulder ) ) 00025 PersosAZigouiller[i].Destroy(); 00026 } 00027 } 00028 } 00029 TriggerEvent(event,self,Pawn(other)); 00030 } 00031 Destroy(); 00032 } 00033 00034 00035 00036 defaultproperties 00037 { 00038 }