Creation/Dev/Script/Client/GameObject: Difference between revisions
From Graal Bible
(Added description and list of variables and functions) |
Pooper200000 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
Inherits [[Creation/Dev/Script/Client/SceneObject|SceneObject]]. | Inherits [[Creation/Dev/Script/Client/SceneObject|SceneObject]]. | ||
Latest revision as of 23:50, 15 February 2010
Inherits SceneObject.
Description
GameObject is the new base object type for everything dynamic in Graal 3D. A game object can use different graphic formats (*.dts, *.dif, *.3ds, *.ft), different movement types (move lists like in Graal 2D, or interpolation and rigid-physics) and can display showimgs for graphical effects.
Instead of using datablocks, almost everything is controlled by script now, which can now have clientside and serverside parts and use attr[0..7] for attaching scripted effects to an object.
Variables
alpha - float
attr - object
attrobjects - object (read only)
chat - string
iseditorobject - boolean
liquidheight - float (read only)
liquidtype - string (read only)
movetype - string
nickcolor - string
nickname - string
scaledshapebox - string (read only)
shape - string
shapebox - string (read only)
skin - string
solid - boolean
transform - string
velocity - string
watercoverage - float (read only)
Functions
checkcollision(str, str) - returns object
checkcollisionbybox(str, str, str) - returns object
clippolygons(str) - returns object
findimg(int) - returns object
getcontrollingclient() - returns object
getcontrollingobject() - returns object
getmountedobject(int) - returns object
getmountedobjectcount() - returns integer
getmountedobjectnode(int) - returns integer
getmountnodeobject(int) - returns object
getmountposition(int) - returns string
getmounttransform(int) - returns string
getnodeposition(str) - returns string
getnodetransform(str) - returns string
getobjectmount() - returns object
hideimg(int)
hideimgs(int, int)
ismounted() - returns boolean
mountobject(obj, int) - returns boolean
setdirection(str)
unmount()
unmountobject(obj) - returns boolean