I tried the snippet below to exclude all but OBJECT_TYPE_CREATURE.
object oEnemy = GetFirstObjectInShape(SHAPE_SPHERE, 10.0f, lSelf, TRUE, OBJECT_TYPE_CREATURE); while(GetIsObjectValid(oEnemy))
{
nEnemyCount = CheckEnemyGroupingOnTarget(oSelf, 10.0f);
oEnemy = GetNextObjectInShape(SHAPE_SPHERE, 10.0f, lSelf, TRUE, OBJECT_TYPE_CREATURE);
}
But it is not working - at least as far as recognising a single creature in a room full of placeables. I am trying really hard to avoid making every placeable in the game Faction: Friendly.
Any suggestions or solutions are welcomed.
Modifié par Morbane, 14 septembre 2010 - 03:49 .





Retour en haut






