Skip to content

Preventing an Area transition while in combat

How do I prevent a player from going thru a particular Area Transition while in combat?

I could do it using a regular trigger and an OnEnter script, but how would you do it with an Area Transition?

Comments

  • Sylvus_MoonbowSylvus_Moonbow Member Posts: 1,085
    // * Returns TRUE if oCreature is in combat.
    int GetIsInCombat(object oCreature=OBJECT_SELF)

    That is the function but you will need to write a script for the onenter of the trigger so it stops the porting.
Sign In or Register to comment.