Things can be a lot of stuff in JK, player,pickups,actors,etc. These are the verbs that work with them.
Clears the specified jk flags. JK Flags
Use: jkClearFlags(thing,flags);
Gets the jk flags. JK Flags
Use: flags = jkGetFlags(thing); returns set flags
Sets the specified jk flags. JK Flags
Use: jkSetFlags(thing,flags);
?
? not used
?
? not used
Attaches a thing to a thing.
Use: AttachThingtoThing(thing1,thing2);
AttachThingtoThingEx() Control
Attaches thing to thing with an optional flag. Attach Flags
Use: AttachThingtoThingEx(thing1,thing2,flag);
Redirects created thing messages to calling cog.
Use: CaptureThing(thing); Used in conjunction with ReleaseThing
Clears the specified explosion flags.
? not used
Clears the specified item Flags. Item Flags
Use: ClearItemFlags(flag); not used ,not sure
?
? Not used
Clears specified physics flags. Physics Flags
Use: ClearPhysicsFlags(thing,flags);
ClearThingAttachFlags() Control
Clears specified attach flags. Attach Flags
Use: ClearThingAttachFlags(thing,flags);
Clears specified Thing Flags Thing Flags
Use: ClearThingFlags(thing,flags);
?
? Not used
Clears specified weapon flags. Weapon Flags
Use: ClearWeaponFlags(thing,flag);
Creates a thing.
Use: CreateThing(thing template,thing position);
Create a thing at specified position
Use: CreateThingatPos(thing template,sector,thing position,pyr); pyr = pitch ,roll,yaw (vector)
Create a thing at specified position
Use: CreateThingatPosNr(thing template,sector,thing position,pyr); pyr = pitch ,roll,yaw (vector)
Create thing.
Use: CreateThingnr(thing template,?)
Damages a thing.
Use: damage = DamageThing(thing,flex damage,flag,damage causething); returns amount of damage taken
Removes a thing from game.
Use: DestroyThing(thing);
Detach a thing from a surface or another thing.
Use: DetachThing(Thing);
Gets the Collide type flags . Collide Type Flags
Use: type = GetCollideType(thing); returns int ,not used in cogs
Gets the current Frame of a moving thing.
Use: frame = GetCurFrame(thing); returns int
?
? not used
?
?
Gets the item Flags. Item Flags
Use: GetItemFlags(thing);
Gets the thing particle flags
Use: Int = GetParticleFlags(thing); returns int ,Not used in cogs
Gets the particle thing growth speed.
Use: flex = GetParticleGrowthSpeed(thing); returns flex ,not used in cogs , not sure
?
? Not used in cogs
?
? Not used in cogs
Gets thing physics flags. Physics Flags
Use: flag = GetPhysicsFlags(thing); returns int
Gets thing attach flags. Attach Flags
Use: flag = GetThingAttachFlags(thing); returns int
?
? Not used
Gets the cog of thing
Use: cog = GetThingClassCog(thing);
?
? Not used
Gets the thing current geometry mode . Geomerty Mode Flags
Use: Flags = GetThingCurGeoMode(thing); returns int
?
? Not used.
?
? not used
?
? not used
Gets Thing Flags Thing Flags
Use: flag = GetThingFlags(thing); returns int representing flags
Gets the thing geometry mode . Geomerty Mode Flags
Use: Flags = GetThingCurGeoMode(thing); returns int
Gets the thing light value.
Use: light = GetThinglight(thing);
?
? not used
Gets the vector thing is looking at.
Use: vector = GetThingLVec(thing); returns vector
Gets the Mass of a thing.
Use: mass = GetThingMass(thing); returns flex
Gets the thing 3do.
Use: Looks = GetThingModel(thing); returns a model
?
? Not used in cogs
Gets the parent thing of a thing
Use: thing = GetThingParent(thing);returns a thing
Gets the Position of a thing
Use: vector = GetThingPos(thing); returns a vector
?
? Not used in cogs
?
? Not used in cogs
?
? Not used in cogs
Gets the thing sector.
Use: sector = GetThingSector(thing); returns sector reference
Gets the signature of thing (unique thing number)
Use: Int = GetThingSignature(thing); returns an int
Gets the thing template. JKL Section: TEMPLATES
Use: template = GetThingTemplate(thing); returns a template
?
? Not used in cogs
Gets the thing thrust (velocity)
Use: vector = GetThingThrust(thing); returns vector
Gets the thing type. Thing Types
Use: int = GetThingType(thing); returns int
?
?
Gets the thing up vector.
? Not used in cogs
Gets the thing velocity.
Use: vector = GetThingVel(thing); returns a vector
?
? Not used
Get thing weapon flags. weapon Flags
Use: flag = GetWeaponFlags(thing); returns int
?
? Not used in cogs
Is the thing moving .
Use: Int = IsThingMoving(Thing); retuns 0 if not moving , non 0 if moving
Checks to see if thing is visible
User: int = IsThingVisible(thing); returns 0 if not visible.
jumps an object to one of its frames
Use: JumptoFrame(thing,int frame,sector);
moves an object to one of its frames
Use: MoveToFrame(thing,int frame,flex speed);
?
?
?
?
Releases thing from use (the calling cog is no longer called). Used in conjunction with CaptureThing();
Use: ReleaseThing(ThingRef);
Rotates the thing specified by RotThing in a time (in seconds) given in RotTime. The center of rotation is specified by the X/Y/Z part of the frame with number RotFrame of the thing. The PCH/YAW/ROL part of that frame defines direction and angle of rotation. A negative value in RotTime inverses the direction of rotation.
Use: RotatePivot(thing RotThing, int RotFrame, flex RotTime);
Sets the specified Collide type flags . Collide Type Flags
Use: GetCollideType(thing,flag);
?
? not used
Sets the specified item Flags. Item Flags
Use: SetItemFlags(thing,flag); not used ,not sure
?
? Not used in cogs
SetParticleGrowthSpeed() Control
Sets the particle Growth speed .
Use: SetParticleGrowthSpeed(thing,flex);
?
? not used in cogs
?
? Not used in cogs
Sets specified physics flags. Physics Flags
Use: SetPhysicsFlags(thing,flags);
Sets specified attach flags. Attach Flags
Use: SetThingAttachFlags(thing,flags);
?
?
?
?
?
? Not used
Sets the thing current geometry mode . Geometry Mode Flags
Use: SetThingCurGeoMode(thing,mode);
?
? Not used
?
? NOt used
Sets a fire offset for a thing.
Use: SetThingfireOffset(thing,vector);
Sets specified Thing Flags Thing Flags
Use: SetThingFlags(thing,flags);
Sets the specified thing geometry mode flags. Geometry Mode Flags
Use: SetThingGeoMode(thing,flag);
Sets the things health.
Use: SetThingHealth(thing,Int); Player max=100
Sets a thing light value.
Use: SetThingLight(thing,int);
?
? not used
Sets the look vector of a thing.
Use: SetThingLook(thing,vector);
Sets the thing Mass.
Use: SetThingMass(thing,flex);
Set Thing model.
Use: SetThingModel(thing,model);
?
? Not used in cogs
Sets the things position
Use: SetThingPos(thing,vector);
?
?
Sets thing rotation velocity
Use: SetThingRotVel(thing,vector);
?
? NOt Used
?
? Not Used
?
?
?
? NOt Used
Sets a things User Data (health)
use: SetThingUserData(thing, intHealth);
Sets a things velocity
Use: SetThingVel(thing,vector);
?
? Not Used
Sets specified weapon flags. Weapon Flags
Use: SetWeaponFlags(thing,flag);
Skips an object to one of its frames
Use: SkipToFrame(thing,int frame,speed int);
Stops a thing movement.
Use: StopThing(thing);
teleports a thing to another things location
Use: TeleportThing(thing,thing);
Waits for a thing to stop before continuing
Use: WaitForStop(thing);