Osiris/API/Transform
From Divinity Engine Wiki
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
- /