Osiris/API/Transform

From Divinity Engine Wiki
Revision as of 15:52, 8 August 2017 by Tinkerer (talk | contribs) (Osiris Core APIs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call Transform(((GUIDSTRING)_Object, (STRING)_ObjectTemplate, (INTEGER)_ReplaceScripts, (INTEGER)_ReplaceScale)
Description

Transforms _Object into the root template _ObjectTemplate. In particular, a.o. the visual and physics resources will be replaced, as well as the VisualSetIndices. Behaviour scripts are only replaced if _ReplaceScripts is 1, and similarly the scale of the object is only changed to that of the root template if _ReplaceScale is 1.

Notes
  • Transforming an object more than once is not supported. It may (seem to) work, but the result is undefined.
See Also
  • /