Okay, I want to create a region in my city map that cannot be accessed in the beginning.
I'm want the character to move away from there onEnter but I just can't do it right.
I've tried with the following:
void main()
{
location lTrigger = GetLocation(OBJECT_SELF);
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionDoCommand(SetCutsceneMode(oPC, TRUE)));
FloatingTextStringOnCreature("Better not go there...", oPC);
AssignCommand(oPC, ActionMoveAwayFromLocation(lTrigger));
AssignCommand(oPC, ActionDoCommand(SetCutsceneMode(oPC, FALSE)));
}
It kind of works but after 2-3 fast clicks the PC can enter the region...
I would really really appreciate some ideas! Is there some better way of doing something like this?





Retour en haut







