I added these lines in a custom user defined script:
//
else if (nUser == 1054)
{
location lLocation = GetLocation(OBJECT_SELF);
RandomizeHead();
AssignCommand(OBJECT_SELF, ActionJumpToObject(GetWaypointByTag("wpoubli")));
AssignCommand(OBJECT_SELF, ActionJumpToLocation(lLocation));
}
//
And I call user defined event number 1054 for creatures I want head randomized in their on spawn scripts like this:
if (GetLocalInt(OBJECT_SELF, "randomhead") != 0) SignalEvent(OBJECT_SELF, EventUserDefined(1054));
Of course the RandomizeHead() function is a custom one ^^
It worked for me so far, so good luck with this!
Modifié par Krevett, 18 février 2011 - 04:28 .