harIII Posted September 17, 2009 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?
Star Admiral Posted September 18, 2009 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.