IETS - v0.5.1
    Preparing search index...

    Function CreateCreature

    BG2 barrel re-exports.

    Generated by ts-update. Do not edit manually.

    Uses named re-exports (not export *) so esbuild can statically resolve each binding without falling back to runtime __reExport helpers for externalized .d.ts modules.

    • This action is used to create a creature - either an NPC, a neutral creature or an enemy. NewObject is the filename of the creature to create, Location is the coordinates to create the creature at ([x.y] format) and direction being the direction the creature is facing (0-15, 0 being south and the facing values increasing as the character turns clockwise). Note that a coordinate of [-1.-1] will create the creature next to the active creature.

      This script is from the area script for the Copper Coronet (AR0406) and creates extra guards when the Player is discovered in the off limits area.

       IF
         Global("CopperGuards","GLOBAL",1)
       THEN
         RESPONSE #100
           CreateCreature("ccguard1",[2338.412],14)
           CreateCreature("ccguard2",[2318.457],14)
           CreateCreature("ccguard1",[2749.793],6)
           CreateCreature("ccguard2",[2791.831],6)
           CreateCreature("ccguard1",[1981.762],14)
           CreateCreature("ccguard1",[1286.1500],14)
       END
      

      Parameters

      Returns Action