type war3image extends agent // all game objects with a model (added by W3CE)
type widget extends war3image // an interactive game object with life
type unit extends widget // a single unit reference
type destructable extends widget
type item extends widget
// Frame API
native CeGetFrameModel takes framehandle whichFrame returns modelhandle
// War3Image API
native CeSetWar3ImageModelPath takes war3image whichImage, string modelPath returns nothing
native CeSetWar3ImageTexturePath takes war3image whichImage, string texturePath, integer textureId returns nothing
native CeGetWar3ImageModel takes war3image whichImage returns modelhandle
// Model API
native CeSetModelPitch takes modelhandle whichModel, real pitch returns nothing
native CeSetModelRoll takes modelhandle whichModel, real roll returns nothing
native CeSetModelYaw takes modelhandle whichModel, real yaw returns nothing
native CeSetModelOrientation takes modelhandle whichModel, real yaw, real pitch, real roll returns nothing
native CeSetModelScale takes modelhandle whichModel, real scale returns nothing
native CeSetModelTime takes modelhandle whichModel, real time returns nothing
native CeSetModelTimeScale takes modelhandle whichModel, real timeScale returns nothing
native CeSetModelHeight takes modelhandle whichModel, real height returns nothing
native CeSetModelX takes modelhandle whichModel, real x returns nothing
native CeSetModelY takes modelhandle whichModel, real y returns nothing
native CeSetModelZ takes modelhandle whichModel, real z returns nothing
native CeSetModelPosition takes modelhandle whichModel, real x, real y, real z returns nothing
native CeSetModelAlpha takes modelhandle whichModel, integer alpha returns nothing
native CeSetModelColor takes modelhandle whichModel, integer r, integer g, integer b returns nothing
native CeSetModelColorByPlayer takes modelhandle whichModel, player whichPlayer returns nothing
native CeSetModelTexturePath takes modelhandle whichModel, string texturePath, integer textureId returns nothing
native CeGetModelTexturePath takes modelhandle whichModel, integer textureId returns string
native CeGetModelTextureCount takes modelhandle whichModel returns integer
native CeSetModelAnimation takes modelhandle whichModel, string whichAnimation returns nothing
native CeSetModelAnimationEx takes modelhandle whichModel, integer primaryProp, integer flags returns nothing
native CeSetModelAnimationByIndex takes modelhandle whichModel, integer whichIndex returns nothing
native CeSetModelAnimationWithRarity takes modelhandle whichModel, string whichAnimation, raritycontrol rarity returns nothing
native CeQueueModelAnimation takes modelhandle whichModel, string whichAnimation returns nothing
native CeAddModelAttachment takes modelhandle whichModel, string modelPath, string attachPointName returns modelhandle
native CeSetModelAttachment takes modelhandle whichModel, modelhandle attachModel, string attachPointName returns nothing
native CeSetModelPath takes modelhandle whichSprite, string modelPath returns nothing
native CeGetModelHeight takes modelhandle whichModel returns real // async!
native CeGetModelX takes modelhandle whichModel returns real // async!
native CeGetModelY takes modelhandle whichModel returns real // async!
native CeGetModelZ takes modelhandle whichModel returns real // async!