Creation/Dev/Script Functions: Graal 3D: Difference between revisions
From Graal Bible
No edit summary |
Pooper200000 (talk | contribs) No edit summary |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
<pre> | <pre> | ||
Script functions: | Script functions: |
Latest revision as of 11:50, 16 February 2010
Script functions: Global: allplayerscount - integer (read only) graalversion - float (read only) timevar - integer (read only) timevar2 - float (read only) worldclockstopped - boolean worldhour - integer worldminute - float worldminutesofday - float worldrealsecondsperday - float addcontrol(obj) addweapon(str) aindexof(float, obj) - returns integer castray(str, str, int) - returns object echo(str) extractfilebase(str) - returns string extractfileext(str) - returns string extractfilename(str) - returns string extractfilepath(str) - returns string findfirstfile(str) - returns string findnextfile(str) - returns string findplayer(str) - returns object getascii(str) - returns integer getboxcenter(str) - returns string getdatablocktypes() - returns object getdropz(str) - returns float getextension(str) - returns string getobjectbyray(str, str) - returns object getobjectsbyradius(str, float, int) - returns object getstringkeys(str) - returns object getsurfacetype(float, float) - returns string getz(float, float) - returns float hasright(str, str) - returns boolean isadminguild(str) - returns boolean isobject(str) - returns boolean lightscene() - returns boolean mapshapeanimation(str, str, str, float) - returns boolean matrixcreate(str, str) - returns string matrixcreatefromeuler(str) - returns string matrixmulpoint(str, str) - returns string matrixmultiply(str, str) - returns string matrixmulvector(str, str) - returns string reloadfile(str) removeweapon(str) savelog(str) sendrpgmessage(str) setfogcolors(obj) setinteriorfocuseddebug(int) setinteriorrendermode(int) setshadowdetaillevel(float) setskybandcolors(obj) setskybandsizes(obj) setsuncolors(obj) setterrainrendermode(int) strequals(str, str) - returns boolean synctimeofday(float, float) updateratings(obj) - returns object vectoradd(str, str) - returns string vectorcross(str, str) - returns string vectordist(str, str) - returns float vectordot(str, str) - returns float vectorlen(str) - returns float vectornormalize(str) - returns string vectororthobasis(str) - returns string vectorscale(str, float) - returns string vectorsub(str, str) - returns string TGraalVar: initialized - boolean (read only) joinedclasses - object (read only) name - string (read only) scriptlogmissingfunctions - boolean timeout - float addarray(obj) cancelevents(str) catchevent(str, str, str) copyfrom(obj) getdatablockvars() - returns object getdynamicvarnames() - returns object geteditvarnames() - returns object getfunctions() - returns object getstaticvarnames() - returns object getvarnames() - returns object ignoreevent(str, str) ignoreevents(str) insertarray(int, obj) isinclass(str) - returns float join(str) leave(str) loadfolder(str, int) loadlines(str) loadstring(str) loadvars(str) objecttype() - returns string savelines(str, int) savestring(str, int) savevars(str, int) scheduleevent(float, str, params...) - returns object settimer(float) sortascending() timershow() trigger(str, params...) MissionArea (TGraalVar): ShapeBaseHitBox (TGraalVar): hitmax - string hitmin - string nodename - string ShapeImageState (TGraalVar): allowimagechange - boolean direction - boolean ejectshell - boolean emitter - object emitternode - string emittertime - float emittertype - string energydrain - float fire - boolean freezelook - boolean ignoreloadedforready - boolean loadedflag - string name - string recoil - string script - string sequence - string sequencerandomflash - boolean sound - object spinthread - string timeoutvalue - float transitiononammo - string transitiononloaded - string transitiononnoammo - string transitiononnotarget - string transitiononnotloaded - string transitiononnotwet - string transitionontarget - string transitionontimeout - string transitionontriggerdown - string transitionontriggerup - string transitiononwet - string waitfortimeout - boolean SimObject (TGraalVar): SceneObject (SimObject): forwardvector - string objectbox - string (read only) position - string rightvector - string rotation - string scale - string transform - string upvector - string worldbox - string (read only) worldboxcenter - string (read only) x - float y - float z - float destroy() getforwardvector() - returns string getobjectbox() - returns string getposition() - returns string getrightvector() - returns string getscale() - returns string gettransform() - returns string getupvector() - returns string getworldbox() - returns string getworldboxcenter() - returns string light() setforwardvector(str) setposition(str) setrightvector(str) setscale(str) settransform(str) setupvector(str) AudioEmitter (SceneObject): description - object filename - string profile - object FractalTree (SceneObject): deffile - string levels - integer seed - integer GameBase (SceneObject): datablock - object DynamicShapeReplicator (GameBase): boxmax - string boxmin - string maxgridobjects - integer mingridobjects - integer radius - integer shapefiles - string surfacetype - string DynamicGrass (DynamicShapeReplicator): DynamicGrassReplicator (DynamicShapeReplicator): Explosion (GameBase): datablock - object Lightning (GameBase): strikesperminute - integer ParticleEmitter (GameBase): ParticleEmitterNode (GameBase): datablock - object emitter - object PathedInterior (GameBase): Precipitation (GameBase): maxmass - float maxspeed - float minmass - float minspeed - float percentage - float Projectile (GameBase): datablock - object initialposition - string initialvelocity - string sourceobject - object ShapeBase (GameBase): chat - string datablock - object shapenamecolor - string applydamage(float) applyimpulse(str, str) - returns boolean applyrepair(float) cancloak() - returns string detachallprojectiles() detachprojectiles(int) getairepairpoint() - returns string getcamerafov() - returns float getcontrollingclient() - returns object getcontrollingobject() - returns object getdamageflash() - returns float getdamagelevel() - returns float getdamagepercent() - returns float getdamagestate() - returns string getenergylevel() - returns float getenergypercent() - returns float geteyepoint() - returns string geteyetransform() - returns string geteyevector() - returns string getimageammo(int) - returns boolean getimageloaded(int) - returns boolean getimageskintag(int) - returns integer getimagestate(int) - returns string getimagetrigger(int) - returns boolean getmountedimage(int) - returns object getmountedobject(int) - returns object getmountedobjectcount() - returns integer getmountedobjectnode(int) - returns integer getmountnodeobject(int) - returns object getmountslot(str) - returns integer getmounttransform(int) - returns string getmuzzlepoint(int) - returns string getmuzzlevector(int) - returns string getobjectmount() - returns object getpendingimage(int) - returns object getrechargerate() - returns float getrepairrate() - returns float getshapename() - returns string getskinname() - returns string getslottransform(int) - returns string getthread(int) - returns string getthreadposition(int) - returns float getvelocity() - returns string getwhiteout() - returns float hide() iscloaked() - returns boolean isdestroyed() - returns boolean isdisabled() - returns boolean isenabled() - returns boolean ishidden() - returns boolean isimagefiring(int) - returns boolean isimagemounted(str) - returns boolean islookfrozen() - returns boolean ismounted() - returns boolean mountimage(str, int) - returns boolean mountobject(obj, int) - returns boolean pausethread(int) - returns boolean playaudio(int, obj) - returns boolean playthread(int, str) - returns boolean playthreadext(int, str, float, float, float, bool) - returns boolean registermelee(str, str, obj, int, str, str) - returns boolean setcamerafov(float) setcloaked(bool) setdamageflash(float) setdamagelevel(float) setdamagestate(str) - returns boolean setdamagevector(str) setenergylevel(float) sethidden(bool) setimageammo(int, bool) - returns boolean setimageloaded(int, bool) - returns boolean setimagetrigger(int, bool) - returns boolean setinvinciblemode(float, float) setrechargerate(float) setrepairrate(float) setshapename(str) setskinname(str) setthreaddir(int, bool) - returns boolean setvelocity(str) - returns boolean setwhiteout(float) show() startfade(float, float, bool) stopaudio(int) - returns boolean stopthread(int) - returns boolean unmount() unmountimage(int) - returns boolean unmountobject(obj) - returns boolean unregistermelee(int) - returns boolean AdvancedCamera (ShapeBase): cameramode - integer zoomdistance - float Camera (ShapeBase): setflymode() setorbitmode(obj, str, float, float, float, bool) MissionMarker (ShapeBase): datablock - object PathCamera (ShapeBase): datablock - object Player (ShapeBase): animatedbyscript - boolean bodyposition - integer datablock - object speed - float swimming - boolean (read only) checkdismountpoint(str, str) - returns boolean clearcontrolobject() getcontrolobject() - returns object getdamagelocation(str) - returns string getstate() - returns string getvictimsbyradius(str, float) - returns object setactionthread(str, bool, bool) - returns boolean setcontrolobject(obj) - returns boolean AIPlayer (Player): maxturnpitch - float maxturnyaw - float simplemovement - boolean wallcheck - boolean clearaim() getaimlocation() - returns string getaimobject() - returns object getmovedestination() - returns string ismoving() - returns boolean setaimlocation(str) setaimobject(obj) setmovedestination(str, bool) setmovespeed(float) stop() StaticShape (ShapeBase): datablock - object Vehicle (ShapeBase): datablock - object FlyingVehicle (Vehicle): datablock - object HoverVehicle (Vehicle): datablock - object WheeledVehicle (Vehicle): datablock - object getwheelcount() - returns integer setwheelpowered(int, bool) - returns boolean setwheelspring(int, obj) - returns boolean setwheelsteering(int, float) - returns boolean setwheeltire(int, obj) - returns boolean AIWheeledVehicle (WheeledVehicle): getmovedestination() - returns string setmovedestination(str, bool) setmovespeed(float) setmovetolerance(float) stop() SpawnSphere (GameBase): indoorweight - float outdoorweight - float radius - float sphereweight - float Splash (GameBase): TSStatic (GameBase): noshadowlevel - float onlyambientlight - boolean Item (TSStatic): datablock - object hide() show() startfade(float, float, bool) Trigger (GameBase): datablock - object fxLight (GameBase): datablock - object InteriorInstance (SceneObject): audioenvironment - object audioprofile - object interiorfile - string showterraininside - boolean Marker (SceneObject): Shape3ds (SceneObject): Sky (SceneObject): materiallist - string skyfadetime - float windvelocity - string TerrainBlock (SceneObject): bumpoffset - float bumpscale - float bumptexture - string detailtexture - string squaresize - integer terrainfile - string zerobumpscale - integer WaterBlock (SceneObject): audioenvironment - object density - float depthgradient - float distortgridscale - float distortmag - float distorttime - float envmapintensity - float envmapovertexture - string envmapundertexture - string flowangle - float flowrate - float liquidtype - string maxalpha - float minalpha - float removewetedges - boolean shoredepth - float shoretexture - string specularcolor - string specularmasktex - string specularpower - float submergetexture0 - string submergetexture1 - string surfaceopacity - float surfaceparallax - float surfacetexture - string tessshore - float tesssurface - float usedepthmask - boolean viscosity - float wavemagnitude - float fxFoliageReplicator (SceneObject): fxGrassReplicator (SceneObject): fxShapeReplicator (SceneObject): fxSunLight (SceneObject): twSurfaceReference (SceneObject): volumeLight (SceneObject): SimDataBlock (SimObject): isdatablock - boolean (read only) AudioDescription (SimDataBlock): AudioProfile (SimDataBlock): description - object environment - object DecalData (SimDataBlock): lifetime - float GameBaseData (SimDataBlock): DebrisData (GameBaseData): explosion - object ExplosionData (GameBaseData): debris - object particleemitter - object soundprofile - object ItemData (GameBaseData): LightningData (GameBaseData): strikesound - object ParticleEmitterData (GameBaseData): particles - string ParticleEmitterNodeData (GameBaseData): PathedInteriorData (GameBaseData): startsound - object stopsound - object sustainsound - object PrecipitationData (GameBaseData): soundprofile - object ProjectileData (GameBaseData): armingdelay - integer bounceelasticity - float bouncefriction - float explosion - object fadedelay - integer gravitymod - float lifetime - integer lightradius - float muzzlevelocity - float particleemitter - object velinheritfactor - float ShapeBaseData (GameBaseData): debris - object explosion - object noshadowlevel - float onlyambientlight - boolean showhitboxes - boolean underwaterexplosion - object AdvancedCameraData (ShapeBaseData): CameraData (ShapeBaseData): MissionMarkerData (ShapeBaseData): PlayerData (ShapeBaseData): decaldata - object dustemitter - object exitingwater - object footbubblessound - object foothardsound - object footmetalsound - object footpuffemitter - object footshallowsound - object footsnowsound - object footsoftsound - object footunderwatersound - object footwadingsound - object impacthardsound - object impactmetalsound - object impactsnowsound - object impactsoftsound - object impactwatereasy - object impactwaterhard - object impactwatermedium - object jumpingsound - object movingbubblessound - object splash - object waterbreathsound - object StaticShapeData (ShapeBaseData): VehicleData (ShapeBaseData): dustemitter - object exitingwater - object hardimpactsound - object impactwatereasy - object impactwaterhard - object impactwatermedium - object softimpactsound - object waterwakesound - object FlyingVehicleData (VehicleData): backwardjetemitter - object downjetemitter - object enginesound - object forwardjetemitter - object jetsound - object trailemitter - object HoverVehicleData (VehicleData): dusttrailemitter - object enginesound - object floatsound - object forwardjetemitter - object jetsound - object WheeledVehicleData (VehicleData): enginesound - object jetsound - object squealsound - object tireemitter - object wheelimpactsound - object ShapeBaseImageData (GameBaseData): casing - object projectile - object SplashData (GameBaseData): explosion - object soundprofile - object TriggerData (GameBaseData): fxLightData (GameBaseData): ParticleData (SimDataBlock): TSShapeConstructor (SimDataBlock): WheeledVehicleSpring (SimDataBlock): WheeledVehicleTire (SimDataBlock): SimGroup (SimObject): addcontrol(obj) GameConnection (SimGroup): account - string (read only) camera - object (read only) cameramode - boolean nick - string (read only) shape - object (read only) weapons - object (read only) addweapon(str) commandtoclient(str) hasright(str, str) - returns boolean objecttype() - returns string removeweapon(str) sendrpgmessage(str) synccamera() triggerclient(str, str, str) Sun (SimObject): Terraformer (SimObject): loadgrayscale(int, str) - returns boolean loadgreyscale(int, str) - returns boolean savegreyscale(int, str) - returns boolean setterrain(int) - returns boolean