ATTENTION
This thread is no longer maintained and the information contained therein may not be accurate.
We have passed the task of documentation over to our sister site,
http://www.modwiki.net where the community can play a more active role in maintaining up to date and accurate documentation.
Introduction
I think it's time I wrote up a more complete command reference for scripts. But I need everyone's help.
I'm starting a thread here in hopes that it takes on the form of a wiki. Of course this means that people with rights to edit threads can edit changes into this post.
If you don't have rights but would like to make a contribution just make a post below and I'll append it. The list is too huge for one post and unfortunately, in order to keep the list uninterupted, I'll have to delete your posts after I edit them into the list.
Hopefully this will serve well as a means to populate BNA's database with definitions.
Scripting Command Reference (Wiki)
____________________________________________________________
accelTime
Category:
Func_movers
Syntax
void accelTime(
float time );
Description
Sets the acceleration time. Set this acceleration time before initiating a new move.
Example
Code:
$machineclaw1_carrier.accelTime (.50);
____________________________________________________________
activateCategory:Entities
Syntaxvoid activate(
entity activator );
DescriptionActivates this entity as if it was activated by a trigger.
Activator is the entity that caused the action (usually the player).
ExampleCode:
NA
____________________________________________________________
activateTargetsCategory:Entities
Syntaxvoid activateTargets(
entity activator );
DescriptionActivates this entity as if it was activated by a trigger.
Activator is the entity that caused the action (usually the player).
ExampleCode:
NA
____________________________________________________________
angToForwardCategory:System
Syntaxvector angToForward(
vector angles );
DescriptionReturns a forward vector for the given Euler angles.
ExampleCode:
NA
____________________________________________________________
angToRightCategory:System
Syntaxvector angToRight(
vector angles );
DescriptionReturns a right vector for the given Euler angles.
ExampleCode:
NA
____________________________________________________________
angToUpCategory:System
Syntaxvector angToUp(
vector angles );
DescriptionReturns an up vector for the given Euler angles.
ExampleCode:
NA
____________________________________________________________
assertCategory:System
Syntaxvoid assert(
float condition );
DescriptionBreaks if the condition is zero. (Only works in debug builds.)
ExampleCode:
NA
____________________________________________________________
attackBeginCategory:AI
Syntaxvoid attackBegin(
string damageDef );
DescriptionNA
ExampleCode:
NA
____________________________________________________________
attackEndCategory:AI
Syntaxvoid attackEnd();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
attackMeleeCategory:AI
Syntaxfloat attackMelee(
string damageDef );
Descriptionreturns true if the attack hit.
ExampleCode:
NA
____________________________________________________________
attackMissleCategory:AI
Syntaxentity attackMissile(
string jointname );
DescriptionReturns projectile fired.
ExampleCode:
NA
____________________________________________________________
becomeNonSolidCategory:func_movable
Syntaxvoid becomeNonSolid();
DescriptionMakes the moveable non-solid for other entities.
ExampleCode:
NA
____________________________________________________________
bindCategory:Entities
Syntaxvoid bind(
entity master )
DescriptionFixes this entity's position and orientation relative to another entity, such that when the master entity moves, so does this entity.
ExampleCode:
NA
____________________________________________________________
bindPositionCategory:Entities
Syntaxvoid bindPosition(
entity master )
DescriptionFixes this entity's position (but not orientation) relative to another entity, such that when the master entity moves, so does this entity.
ExampleCode:
$exampleChild.bindPosition( $exampleParent );
____________________________________________________________
bindToJointCategory:Entities
Syntaxvoid bindToJoint(
entity master,
string boneName,
float rotateWithMaster )
DescriptionFixes this entity's position and orientation relative to a bone on another entity, such that when the master's bone moves, so does this entity.
ExampleCode:
$exampleChild.bindToJoint( $exampleParent, "exampleBone", 1 );
____________________________________________________________
bobCategory:func_mover
Syntaxvoid bob(
float speed,
float phase,
vector distance );
DescriptionInitiates a translation back and forth along the given vector with the given speed and phase.
ExampleCode:
NA
____________________________________________________________
canBecomeSolidCategory:AI
Syntaxfloat canBecomeSolid();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
clearEnemyCategory:NA
Syntaxvoid clearEnemy();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
clearSignalCategory:Entities
Syntaxvoid clearSignal(
float signalNum );
DescriptionDisables the callback function on the specified signal.
ExampleCode:
NA
____________________________________________________________
clearSignalThreadCategory:System
Syntaxvoid clearSignalThread(
float signalNum,
entity ent );
DescriptionClears the script callback function set for when the given signal is raised on the given entity.
ExampleCode:
NA
____________________________________________________________
closeCategory:Doors
Syntaxvoid close();
DescriptionCloses the door.
ExampleCode:
NA
____________________________________________________________
closePortalCategory:func_movers
Syntaxvoid closePortal();
DescriptionCloses the renderer portal associated with this mover.
ExampleCode:
NA
____________________________________________________________
cosCategory:System
Syntaxfloat cos(
float degrees );
DescriptionReturns the cosine of the given angle in degrees.
ExampleCode:
NA
____________________________________________________________
createMissileCategory:AI
Syntaxentity createMissile(
string jointname );
DescriptionReturns projectile created.
ExampleCode:
NA
____________________________________________________________
CrossProductCategory:System
Syntaxvector CrossProduct( vector vec1, vector vec2 );
DescriptionReturns the cross product of the two vectors.
ExampleCode:
NA
____________________________________________________________
decelSoundCategory:func_movers
Syntaxvoid decelSound(
string sound );
DescriptionSets the sound to be played when the mover decelerates.
ExampleCode:
NA
____________________________________________________________
decelTimeCategory:func_movers
Syntaxvoid decelTime(
float time );
DescriptionSets the deceleration time. Set this deceleration time before initiating a new move.
ExampleCode:
NA
____________________________________________________________
disableCategory:Doors
Syntaxvoid disable();
DescriptionDisables the door.
ExampleCode:
NA
____________________________________________________________
DotProductCategory:System
Syntaxfloat DotProduct(
vector vec1,
vector vec2 );
DescriptionReturns the dot product of the two vectors.
ExampleCode:
NA
____________________________________________________________
enableCategory:Doors
Syntaxvoid enable();
DescriptionEnables the door.
ExampleCode:
NA
____________________________________________________________
enemyRangeCategory:AI
Syntaxfloat enemyRange();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
faceEnemyCategory:AI
Syntaxvoid faceEnemy();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
facingIdealCategory:AI
Syntaxfloat facingIdeal();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
fadeInCategory:System
Syntaxvoid fadeIn(
vector color,
float time );
DescriptionFades towards the given color over the given time in seconds.
ExampleCode:
NA
____________________________________________________________
fadeOutCategory:System
Syntaxvoid fadeOut(
vector color,
float time );
DescriptionFades from the given color over the given time in seconds.
ExampleCode:
NA
____________________________________________________________
fadeToCategory:System
Syntaxvoid fadeTo(
vector color,
float alpha,
float time );
DescriptionFades to the given color up to the given alpha over the given time in seconds.
ExampleCode:
NA
____________________________________________________________
firstPersonCategory:System
Syntaxvoid firstPerson();
DescriptionReturns view control to the player entity.
ExampleCode:
NA
____________________________________________________________
getAnglesCategory:Entities
Syntaxvector getAngles();
DescriptionReturns the current orientation of this entity (relative to bind parent if any).
ExampleCode:
NA
____________________________________________________________
getAngularVelocityCategory:Entities
Syntaxvector getAngularVelocity();
DescriptionGets the current angular velocity of this entity. The angular velocity of a physics object is a vector that passes through the center of mass. The direction of this vector defines the axis of rotation and the magnitude defines the rate of rotation about the axis in radians per second.
ExampleCode:
NA
____________________________________________________________
getButtonsCategory:Player
Syntaxfloat[i] getButtons();
Description
Returns the button state from the current user command.
Example
Code:
NA
____________________________________________________________
getcvar
Category:
System
Syntax
[i]string[i] getcvar( [i]string[i] name );
Description
Returns the string for a cvar.
Example
Code:
NA
____________________________________________________________
getEntity
Category:
System
Syntax
[i]entity getEntity(
string name );
DescriptionReturns a reference to the entity with the specified name.
ExampleCode:
NA
____________________________________________________________
getFloatKeyCategory:Entities
Syntaxfloat getFloatKey(
string key );
DescriptionRetrieves the floating point value of a specific spawn arg.
ExampleCode:
NA
____________________________________________________________
getFrameTimeCategory:System
Syntaxfloat getFrameTime();
DescriptionReturns the length of time between game frames. This is not related to renderer frame rate.
ExampleCode:
NA
____________________________________________________________
getIntKeyCategory:Entities
Syntaxfloat getIntKey(
string key );
DescriptionRetrieves the integer value of a specific spawn arg.
ExampleCode:
NA
____________________________________________________________
getKeyCategory:Entities
Syntaxstring getKey(
string key );
DescriptionRetrieves the value of a specific spawn arg.
ExampleCode:
NA
____________________________________________________________
getLinearVelocityCategory:Entities
Syntaxvector getLinearVelocity();
DescriptionGets the current linear velocity of this entity. The linear velocity of a physics object is a vector that defines the translation of the center of mass in units per second.
ExampleCode:
NA
____________________________________________________________
getMaxsCategory:Entities
Syntaxvector getMaxs();
DescriptionGets the maximum corner of this entity's bounding box.
ExampleCode:
NA
____________________________________________________________
getMinsCategory:Entities
Syntaxvector getMins();
DescriptionGets the minimum corner of this entity's bounding box.
ExampleCode:
NA
____________________________________________________________
getMoveCategory:Player
Syntaxvector getMove();
DescriptionReturns the movement relative to the player's view angles from the current user command.
vector_x = forward, vector_y = right, vector_z = up
ExampleCode:
NA
____________________________________________________________
getNameCategory:Entities
Syntaxstring getName();
DescriptionReturns the name of this entity.
ExampleCode:
$exampleEntity.getName();
____________________________________________________________
getOriginCategory:Entities
Syntaxvector getOrigin();
DescriptionReturns the current position of this entity (relative to bind parent if any).
ExampleCode:
NA
____________________________________________________________
getSizeCategory:Entities
Syntaxvector getSize();
DescriptionGets the size of this entity's bounding box.
ExampleCode:
NA
____________________________________________________________
getTargetCategory:Entities
Syntaxentity getTarget(
float num );
DescriptionReturns the requested target entity.
ExampleCode:
$exampleEntity.getTarget( 1 );
____________________________________________________________
getTimeCategory:System
Syntaxfloat getTime();
DescriptionReturns the current game time in seconds.
ExampleCode:
NA
____________________________________________________________
getVectorKeyCategory:Entities
Syntaxvector getVectorKey(
string key );
DescriptionRetrieves the vector value of a specific spawn arg.
ExampleCode:
NA
____________________________________________________________
getViewAnglesCategory:Player
Syntaxvector getViewAngles();
DescriptionReturns the player view angles.
ExampleCode:
NA
____________________________________________________________
getWorldOriginCategory:Entities
Syntaxvector getWorldOrigin();
DescriptionReturns the current worldspace position of this entity (regardless of any bind parent).
ExampleCode:
$exampleEntity.getWorldOrigin();
____________________________________________________________
hasAnimCategory:Actors
Syntaxfloat hasAnim(
float channel,
string animName );
DescriptionReturns true when an entity has a specific animation.
ExampleCode:
NA
____________________________________________________________
hideCategory:Entities
Syntaxvoid hide();
DescriptionMakes this entity invisible.
ExampleCode:
NA
____________________________________________________________
killthreadCategory:System
Syntaxvoid killthread(
string threadName );
DescriptionKills all threads with the specified name
ExampleCode:
NA
____________________________________________________________
moveCategory:func_movers
Syntaxvoid move(
float angle,
float distance );
DescriptionInitiates a translation with the given distance in the given yaw direction. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
moveToCategory:func_movers
Syntaxvoid moveTo(
entity targetEntity );
DescriptionInitiates a translation to the position of an entity. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
numTargetsCategory:Entities
Syntaxfloat numTargets();
DescriptionReturns the number of entities this entity has targeted.
ExampleCode:
$exampleEntity.numTargets();
____________________________________________________________
onSignalCategory:System
Syntaxvoid onSignal(
float signalNum,
entity ent,
string functionName );
DescriptionSets a script callback function for when the given signal is raised on the given entity.
ExampleCode:
NA
____________________________________________________________
PauseCategory:System
Syntaxvoid pause();
DescriptionPauses the current thread.
ExampleCode:
NA
____________________________________________________________
PrintCategory:System
Syntaxvoid print(
string text );
DescriptionPrints the given string to the console.
ExampleCode:
NA
____________________________________________________________
printlnCategory:System
Syntaxvoid println(
string text );
DescriptionPrints the given line to the console.
ExampleCode:
NA
____________________________________________________________
____________________________________________________________
random
Category:
System
Syntax
float random(
float range );
Description
Returns a random value X where 0 <= X < range.
Example
Code:
NA
____________________________________________________________
randomTargetCategory:Entities
Syntaxentity randomTarget(
string ignoreName );
DescriptionReturns a random targeted entity. Pass in an entity name to skip that entity.
ExampleCode:
$exampleEntity.randomTarget( ignoreThisEntity );
____________________________________________________________
removeCategory:Entities
Syntaxvoid remove();
DescriptionRemoves this entity from the game.
ExampleCode:
$exampleEntity.remove();
____________________________________________________________
removeBindsCategory:Entities
Syntaxvoid removeBinds();
DescriptionRemoves all attached entities from the game.
ExampleCode:
NA
____________________________________________________________
rotateCategory:func_movers
Syntaxvoid rotate(
vector angleSpeed );
DescriptionInitiates a rotation with the given angular speed. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
rotateDownToCategory:func_movers
Syntaxvoid rotateDownTo(
float axis,
float angle );
DescriptionInitiates a rotation about the given axis by decreasing the current angle towards the given angle. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
rotateOnceCategory:func_movers
Syntaxvoid rotateOnce(
vector angles );
DescriptionInitiates a rotation towards the current angles plus the given Euler angles. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
rotateToCategory:func_movers
Syntaxvoid rotateTo(
vector angles );
DescriptionInitiates a rotation towards the given Euler angles. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
rotateUpToCategory:func_movers
Syntaxvoid rotateUpTo(
float axis,
float angle );
DescriptionInitiates a rotation about the given axis by increasing the current angle towards the given angle. Uses the current speed/time and acceleration and deceleration settings.
ExampleCode:
NA
____________________________________________________________
sayCategory:System
Syntaxvoid say(
string text );
DescriptionPrint this line on the network
ExampleCode:
NA
____________________________________________________________
setAnglesCategory:Entities
Syntaxvoid setAngles(
vector angles );
DescriptionSets the current orientation of this entity (relative to bind parent if any).
ExampleCode:
NA
____________________________________________________________
setAngularVelocityCategory:Entities
Syntaxvoid setAngularVelocity(
vector velocity );
DescriptionSets the current angular velocity of this entity. The angular velocity of a physics object is a vector that passes through the center of mass. The direction of this vector defines the axis of rotation and the magnitude defines the rate of rotation about the axis in radians per second.
ExampleCode:
NA
____________________________________________________________
setCameraCategory:System
Syntaxvoid setCamera(
entity cameraEnt );
DescriptionTurns over view control to the given camera entity.
ExampleCode:
NA
____________________________________________________________
setColorCategory:Entities
Syntaxvoid setColor(
float red,
float green,
float blue );
DescriptionSets the RGB color of this entity (shader parms Parm0, Parm1, Parm2).
ExampleCode:
NA
____________________________________________________________
setcvarCategory:System
Syntaxvoid setcvar(
string name,
string value );
DescriptionSets a cvar.
ExampleCode:
NA
____________________________________________________________
setGuiFloatCategory:Entities
Syntaxvoid setGuiFloat(
string key,
float value );
DescriptionSets a parameter on this entity's GUI.
ExampleCode:
NA
____________________________________________________________
setGuiParmCategory:Entities
Syntaxvoid setGuiParm(
string key,
string value );
DescriptionSets a parameter on this entity's GUI.
ExampleCode:
NA
____________________________________________________________
setHealthCategory:AI
Syntaxvoid setHealth(
float health );
DescriptionNA
ExampleCode:
NA
____________________________________________________________
setKeyCategory:Entities
Syntaxvoid setKey(
string key,
string value );
DescriptionSets a key on this entity's spawn args. Note that most spawn args are evaluated when this entity spawns in, so this will not change the entity's behavior in most cases. This is chiefly for saving data the script needs in an entity for later retrieval.
ExampleCode:
NA
____________________________________________________________
setLightParmCategory:Lights
Syntaxvoid setLightParm(
float parmNum,
float value );
DescriptionSets a shader parameter.
ExampleCode:
NA
____________________________________________________________
setLightParmsCategory:Lights
Syntaxvoid setLightParms(
float parm0,
float parm1,
float parm2,
float parm3 );
DescriptionSets the red/green/blue/alpha shader parms on the light and the model.
ExampleCode:
NA
____________________________________________________________
setLinearVelocityCategory:Entities
Syntaxvoid setLinearVelocity(
vector velocity );
DescriptionSets the current linear velocity of this entity in units per second. The linear velocity of a physics object is a vector that defines the translation of the center of mass in units per second.
ExampleCode:
NA
____________________________________________________________
setModelCategory:Entities
Syntaxvoid setModel(
string modelName );
DescriptionSets the model this entity uses.
ExampleCode:
$exampleEntity.setModel( "modelname" );
____________________________________________________________
setNameCategory:Entities
Syntaxvoid setName(
string name );
DescriptionSets the name of this entity.
ExampleCode:
$exampleEntity.setName( newName );
____________________________________________________________
setOriginCategory:Entities
Syntaxvoid setOrigin(
vector origin );
DescriptionSets the current position of this entity (relative to it's bind parent if any).
ExampleCode:
NA
____________________________________________________________
setOwnerCategory:Entities
Syntaxvoid setOwner(
entity owner );
DescriptionSets the owner of this entity. Entity's will never collide with their owner.
ExampleCode:
$exampleEntity.setOwner( $ownerEntity );
____________________________________________________________
setRadiusCategory:Lights
Syntaxvoid setRadius(
float radius );
DescriptionSets the size of the bounding box.
ExampleCode:
NA
____________________________________________________________
setRadiusXYZCategory:Lights
Syntaxvoid setRadiusXYZ(
float x,
float y,
float z );
DescriptionSets the width/length/height of the light bounding box.
ExampleCode:
NA
____________________________________________________________
setShaderCategory:Lights
Syntaxvoid setShader(
string shader );
DescriptionSets the shader to be used for the light.
ExampleCode:
NA
____________________________________________________________
setShaderParmCategory:Lights
Syntaxvoid setShaderParm(
float parm,
float value );
DescriptionSets the value of the specified shader parm.
ExampleCode:
NA
____________________________________________________________
setShaderParmsCategory:NA
Syntaxvoid setShaderParms(
float parm0,
float parm1,
float parm2,
float parm3 );
DescriptionSets shader parms Parm0, Parm1, Parm2, and Parm3 (red, green, blue, and alpha respectively).
ExampleCode:
NA
____________________________________________________________
setSizeCategory:Entities
Syntaxvoid setSize(
vector min,
vector max );
DescriptionSets the size of this entity's bounding box.
ExampleCode:
NA
____________________________________________________________
setSkinCategory:Entities
Syntaxvoid setSkin(
string skinName );
DescriptionSets the skin this entity uses. Set to "" to turn off the skin.
ExampleCode:
$exampleEntity.setSkin( "skinName" );
____________________________________________________________
setSpawnArgCategory:System
Syntaxvoid setSpawnArg(
string key,
string value );
DescriptionSets a key/value pair to be used when a new entity is spawned.
ExampleCode:
NA
____________________________________________________________
setStateCategory:Actors
Syntaxvoid setState(
string stateFunc );
DescriptionSets the next state and goes to it immediately
ExampleCode:
NA
____________________________________________________________
setWorldOriginCategory:Entities
Syntaxvoid setWorldOrigin(
vector origin );
DescriptionSets the current position of this entity (regardless of any bind parent).
ExampleCode:
$exampleEntity.setWorldOrigin( vector );
____________________________________________________________
showCategory:Entities
Syntaxvoid show();
DescriptionMakes this entity visible if it has a model.
ExampleCode:
NA
____________________________________________________________
shrivelCategory:AI
Syntaxvoid shrivel(
float time );
DescriptionNA
ExampleCode:
NA
____________________________________________________________
sinCategory:System
Syntaxfloat sin(
float degrees );
DescriptionReturns the sine of the given angle in degrees.
ExampleCode:
NA
____________________________________________________________
spawnCategory:System
Syntaxentity spawn(
string classname );
DescriptionCreates an entity of the specified classname and returns a reference to the entity.
ExampleCode:
NA
____________________________________________________________
spawnFloatCategory:System
Syntaxfloat SpawnFloat(
string key,
float default );
DescriptionReturns the floating point value for the given spawn argument.
ExampleCode:
NA
____________________________________________________________
spawnStringCategory:System
Syntaxstring SpawnString(
string key,
string default );
DescriptionReturns the string for the given spawn argument.
ExampleCode:
NA
____________________________________________________________
spawnVectorCategory:System
Syntaxvector SpawnVector(
string key,
vector default );
DescriptionReturns the vector for the given spawn argument.
ExampleCode:
NA
____________________________________________________________
speedCategory:func_movers
Syntaxvoid speed(
float speed );
DescriptionSets the movement speed. Set this speed before initiating a new move.
ExampleCode:
NA
____________________________________________________________
startCategory:Cameras
Syntaxvoid start();
DescriptionStarts a spline or anim camera moving.
ExampleCode:
NA
____________________________________________________________
stopCategory:Cameras
Syntaxvoid stop();
DescriptionStops a spline or anim camera moving.
ExampleCode:
NA
____________________________________________________________
stopMoveCategory:AI
Syntaxvoid stopMove();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
swayCategory:func_movers
Syntaxvoid sway(
float speed,
float phase,
vector angles );
DescriptionInitiates a rotation back and forth along the given angles with the given speed and phase.
ExampleCode:
NA
____________________________________________________________
terminateCategory:System
Syntaxvoid terminate(
float threadNumber );
DescriptionTerminates a thread.
ExampleCode:
NA
____________________________________________________________
testAnimMoveCategory:AI
Syntaxfloat testAnimMove(
string animname );
DescriptionNA
ExampleCode:
NA
____________________________________________________________
testMeleeAttackCategory:AI
Syntaxfloat testMeleeAttack();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
threadnameCategory:System
Syntaxvoid threadname(
string name );
DescriptionSets the name of the current thread.
ExampleCode:
NA
____________________________________________________________
timeCategory:func_movers
Syntaxvoid time(
float time );
DescriptionSets the movement time. Set this time before initiating a new move.
ExampleCode:
NA
____________________________________________________________
touchesCategory:Entities
Syntaxfloat touches(
entity other );
DescriptionReturns true if this entity touches the other entity.
ExampleCode:
NA
____________________________________________________________
triggerCategory:System
Syntaxvoid trigger( entity entityToTrigger );
DescriptionTriggers the given entity.
ExampleCode:
NA
____________________________________________________________
unbindCategory:Entities
Syntaxvoid unbind();
DescriptionDetaches this entity from its master.
ExampleCode:
$exampleChild.unbind();
____________________________________________________________
vecLengthCategory:System
Syntaxfloat vecLength(
vector vec );
DescriptionReturns the length of the given vector.
ExampleCode:
NA
____________________________________________________________
vecNormalizeCategory:System
Syntaxvector vecNormalize( vector vec );
DescriptionReturns the normalized version of the given vector.
ExampleCode:
NA
____________________________________________________________
waitCategory:Entities
Syntaxvoid wait(
float time );
DescriptionSuspends execution of the current thread for the given number of seconds.
ExampleCode:
NA
____________________________________________________________
waitForCategory:Entities
Syntaxvoid waitFor(
entity mover );
DescriptionWaits for the given entity to complete it's move.
ExampleCode:
NA
____________________________________________________________
waitForThreadCategory:Entities
Syntaxvoid waitForThread(
float threadNumber );
DescriptionWaits for the given thread to terminate.
ExampleCode:
NA
____________________________________________________________
waitMoveCategory:AI
Syntaxvoid waitMove();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
wanderCategory:AI
Syntaxvoid wander();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
weaponHolsteredCategory:Weapons
Syntaxvoid weaponHolstered();
DescriptionNA
ExampleCode:
NA
____________________________________________________________
Float isn't a command. It's a Data Type. It's basically shorthand for floating point number as in a number with a decimal point.
I'll write up a thread on data types when I have time. Right now most all of it is dedicated to this thread.
thx for taking the trouble...
Unstickying this thread so your list can take the place of mine.