EntitiesObjectsWorld
click for full size image in pop-up window world_acduct
 
Description
 
Air conditionning duct
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (acduct.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_acvent
 
Description
 
Air conditionning vent
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (acvent.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_barrel
 
Description
 
Large Metal Trash Container
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (can.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_blockade
 
Description
 
Blockade Saw-Horse
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (blockade.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_boxfan
 
Description
 
Box Fan
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (boxfan.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_bullhorn
 
Description
 
Bull Horn
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (bullhorn.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_firebarrel
 
Description
 
Large Metal Trash Container with fire spewing from it
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (firecan.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_FireExtinguisher
 
Description
 
Fire Extinguisher
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (fire_ext.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_firelog
 
Description
 
Logs for the Fire
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (firelog.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_hydrant
 
Description
 
Fire Hydrant. Choice of red or gray skin.
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (hydrant.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.
skin: name of skin used for model. Choices are 'hydrant' (shown above) and the following:
click for full size image in pop-up window
hydrant2

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_mailbox
 
Description
 
US Mailbox
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (mailbox.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_meter
 
Description
 
Parking meter
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (meter.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_newsbox
 
Description
 
Newspaper Dispenser
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (news.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_o2tank
 
Description
 
Oxygen Tank
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (o2tank.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_portolet
 
Description
 
Port-o-let Portable John
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (portolet.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_propane
 
Description
 
Propane Tank
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (propane.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_safelite
 
Description
 
Emergency Light - Red
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (safelite.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_shipcrate
 
Description
 
Shipping Crate
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (shipcrate.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_sign_large
 
Description
 
Vanity Billboard
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (signbig.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_sign_ritual
 
Description
 
Ritual billboard
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (ritualsign.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_sign_small
 
Description
 
Crash Airlines Billboard
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (signsmall.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_sign_street
 
Description
 
Street Sign-Lamar and McKinney
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (streetsign.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_sink
 
Description
 
Bathroom Sink. This sentient has "sink" AI set by default (global/sink.scr) in which its AI states are defined and the sentient type is set as "inanimate". When sinks are used, the cold water faucet turns open and water pours into into it. When used again, the faucet shuts closed and the water drains from the sink.
 
Keys
 
angle:
initial orientation of model in game (default: 0).
model:
name of entity's model definition file (sink.def). Do not change.
scale:
controls size of model in the game (ex: 1.0).
targetname:
name referred to when controlled by a script.
target: the entity this points will be triggered when object is destroyed.
killthread: name of thread to call when object is destroyed.
alpha: translucency of model in game. Values are from 0-1 (default: 1).

Spawnflags
 
None

Notes

Sinks work well and can be a cool feature to add to your levels. Unfortunately, they are plagued with an annoying flaw: when you first use them to make the water run, the running water sound starts but never stops even if you use it again to turn off the faucet. The reason for this is that the running water sound is a looping sound. Once started, looping sounds won't stop until you tell them to. Fortunately, this can be fixed. Just give the sink a targetname and include the following thread in your script:

$sink thread sinks_that_work_properly
end

sinks_that_work_properly:

local.faucetstate = 0
local.self definestate idle sink_idle
local.self definestate use faucet_operate
local.self definestate killed die_and_shut_up
pause

sink_idle:
local.self clearstate
local.self respondto use
local.self respondto pain
local.faucetstate ifequal 0 local.self anim "sink_idleoff"
local.faucetstate ifequal 1 local.self anim "sink_idleon"
goto sink_done

faucet_operate:
local.self ignore use
local.faucetstate *= -1
local.faucetstate += 1
local.faucetstate ifequal 0 goto faucet_off

local.self playsound "environment/plumbing/fctfrsnk.wav" 1 2
local.self anim "sink_turnon"
waitFor local.self
local.self state idle
goto sink_done

faucet_off:
local.self stopsound 2
local.self playsound "environment/plumbing/snkdrnng.wav" 1 2
local.self anim "sink_turnoff"
waitFor local.self
local.self state idle
goto sink_done

die_and_shut_up:
local.self ignoreall
local.self stopsound 2
local.self playsound "impact/glass/lrg2.wav"
local.self shatter "0 90 0" 75 30 75 .25 0
local.self remove

sink_done:
end

The above thread is simply a modification of global/sink.scr AI script for the idle, use and killed states. The actual fix is provided by the inclusion of the "local.self stopsound 2" command which forces the running water sound (playing on channel 2) to stop when the tap is turned off or the sink is destroyed.


click for full size image in pop-up window world_streetlight
 
Description
 
Streetlight
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (streetlight.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_toilet
 
Description
 
Toilet. This sentient has "toilet" AI set by default (global/toilet.scr) in which its AI states are defined and the sentient type is set as "inanimate". Toilets flush when used. Choice of clean or dirty skin.
 
Keys
 
angle:
initial orientation of model in game (default: 0).
model:
name of entity's model definition file (toilet.def). Do not change.
scale:
controls size of model in the game (ex: 1.0).
targetname:
name referred to when controlled by a script.
target: the entity this points will be triggered when object is destroyed.
killthread: name of thread to call when object is destroyed.
alpha: translucency of model in game. Values are from 0-1 (default: 1).
skin: name of skin used for model. Choices are 'toilet_base' (shown above) and the following:
click for full size image in pop-up window
toiletclean_base

Spawnflags
 
None

Notes


click for full size image in pop-up window world_torch
 
Description
 
Torch for Fire
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (torch.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_trashcan1
 
Description
 
Trash Can-Round and Metal
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (trashcan1.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_trashcan2
 
Description
 
Trash Can-Square and Plastic
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (trashcan2.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_trashcan3
 
Description
 
Desk Trash Can-Small and Plastic
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (trashcan3.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_urinal
 
Description
 
Urinal. This sentient has "urinal" AI set by default (global/urinal.scr) in which its AI states are defined and the sentient type is set as "inanimate". Urinals flush when used.
 
Keys
 
angle:
initial orientation of model in game (default: 0).
model:
name of entity's model definition file (urinal.def). Do not change.
scale:
controls size of model in the game (ex: 1.0).
targetname:
name referred to when controlled by a script.
target: the entity this points will be triggered when object is destroyed.
killthread: name of thread to call when object is destroyed.
alpha: translucency of model in game. Values are from 0-1 (default: 1).

Spawnflags
 
None

Notes


click for full size image in pop-up window world_usflag
 
Description
 
US Flag-Animated
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (flag.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_wirespool
 
Description
 
Wirespool, found at construction sites
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (wirespool.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes


click for full size image in pop-up window world_wreckingball
 
Description
 
Wrecking Ball
 
Keys
 
angle: initial orientation of model in game (default: 0).
angles: pitch, yaw, roll method of 3D orientation for model (default: 0 0 0).
model: name of entity's model definition file (wreckball.def). Do not change.
scale: controls size of model in the game (ex: 1.0).
alpha: translucency of model in game. Values are from 0-1 (default: 1).
target: the entity this points to will be triggered when object is destroyed.
killtarget: the entity this points to will be removed when object is destroyed.
targetname:
name referred to when controlled by a script.

Spawnflags
 
1 NOT SOLID
2 NOT DAMAGEABLE

Notes