Jump to content

Home

Area Effect Script


harIII

Recommended Posts

void main() {
  object oTarget = GetFirstObjectInShape( SHAPE_SPHERE, 5.00, GetLocation( GetFirstPC() ), FALSE, OBJECT_TYPE_CREATURE );
  while( GetIsObjectValid( oTarget ) ) {
     if( GetIsEnemy( oTarget, GetFirstPC() ) ) {
        // Stuff Happens.
     }
     oTarget = GetNextObjectInShape( SHAPE_SPHERE, 5.00, GetLocation( GetFirstPC() ), FALSE, OBJECT_TYPE_CREATURE );
  }
}

 

Voila. Hope it works.

 

- Star Admiral

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...