float fRoamDistance = GetLocalFloat(OBJECT_SELF,"ROAM_DISTANCE");
if ( fRoamDistance > 25.0f )
{
location lRoamLocation = Location(GetArea(OBJECT_SELF),GetPosition(OBJECT_SELF),0.0f);
SetRoamLocation(OBJECT_SELF,lRoamLocation);
SetRoamRadius(OBJECT_SELF,fRoamDistance);
}
That is from creature_core. I can confirm that the functions are being called, but the creature just stands there doing idle animations. Am I missing something? How are we suppose to make something wander around randomly?
I see there is a system in sys_ambient_h where we can get a creature to walk a waypoint path, but I just want my mobs to wander randomly when they are spawned.
Modifié par FalloutBoy, 15 décembre 2009 - 07:18 .





Retour en haut






