Cog Files


Cog Message


This is a list of messages that can be used in cog files. They are defined in the symbols section of a COG file, and can have handlers in the code section (i.e. routines which are carried out when the message is sent).


activated
aievent
arrived
autoselect
blocked
changed
created
crossed
damaged
deactivated
deselected
entered
exited
fire
join
killed
leave
loading
newplayer
pulse
removed
respawn
selected
shutdown
sighted
skill
splash
startup
taken
timer
touched
trigger
user0


Activated

Sent by a force power or usable item (eg. bacta tank, IR goggles) when its hotkey is pressed.
Or
Sent by a surface or thing when nudged (the player is next to it and presses spacebar)

Sometimes found as "Activate" too.


Aievent

Found only in Jk.exe, not found in use in cogs.


Arrived

Sent by a path-controlled thing when it arrives at a frame.


Autoselect

Sent by a weapon when it is autoselected.


Blocked

Sent by a path-controlled thing when something is blocking the path.


Changed

Found only in Jk.exe ,not found in use in cogs.


Created

Sent by a thing when it has been created.


Crossed

Sent by an adjoined surface when it is crossed.


Damaged

Sent by a surface or thing when hit by a weapon.


Deactivated

Sent by a surface or thing when nudge is finished (the player is next to it and releases spacebar)
OR
Sent by a force power or usable item (eg. bacta tank, IR goggles) when its hotkey is released.


Deselected

Sent by a force power or weapon when it is deselected.


Entered

Sent by a sector when the player enters it, or by a surface when a player steps onto it.


Exited

Sent by a sector when the player exits it, or by a surface when a player steps off it.


Fire

Sent by a force power or weapon when fired.


Join

Sent in multiplayer when a player joins


Killed

Sent by an actor thing when it is killed.


Leave

Sent in multiplayer when player leaves.


Loading

Unknown, used only in 10_powercore.cog


Newplayer

Sent by player thing when it respawns.


Pulse

Sent when a repetitive delay set by SetPulse() or SetThingPulse() elapses.


Removed

Sent by a thing when removed from the world.


Respawn

Sent by an item thing when it respawns.


Selected

Sent by weapon or force power when selected.


Shutdown

Sent when level ended.


Sighted

Sent by a thing when it enters the player's fov.


Skill

Sent when a force power is used on an actor.


Splash

Sent by player thing when enters or leaves water.


Startup

Sent at level startup


Taken

Sent by an item thing when it is taken


Timer

Sent when a delay set by SetTimer(), SetTimerEx() or SetThingTimer() elapses.


Touched

Sent by a surface or thing when player collides with it.


Trigger

Sent by SendTrigger()


User0 to User 7

User defined message, sent by SendMessage()