harIII Posted September 17, 2009 Share Posted September 17, 2009 May I please get a script that affects everybody except party members and only those that are hostile within five feet of the PC? Link to comment Share on other sites More sharing options...
Star Admiral Posted September 18, 2009 Share Posted September 18, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.