Djinni Wiki
Advertisement

function CreateObject (int nObjectType, string sTemplate, location lLocation, int bUseAppearAnimation=FALSE, string sNewTag="")

Create an object of the specified type at lLocation. -

  • nObjectType: OBJECT_TYPE_ITEM, OBJECT_TYPE_CREATURE, OBJECT_TYPE_PLACEABLE, OBJECT_TYPE_STORE, OBJECT_TYPE_WAYPOINT, OBJECT_TYPE_TRIGGER
  • sTemplate
  • lLocation
  • bUseAppearAnimation
  • sNewTag - if this string is not empty, it will replace the default tag from the template
  • Note: in case of trigger it should only be used to create triggers from spells. It creatures standard quad shaped trigger with 0.5x0.5m
  • Return type: object
  • Include file: nwscriptdefn
Advertisement