FANDOM


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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.