EVENT

## Event Usage

Events can be assigned callbacks in scripts, normally in the bot scripts.

For Example:

```
 this.Events[EVENT.TEAM\_CHAT\_MSG] = function(WhoSaidIt, Message)
 {
 n = GetEntName(WhoSaidIt);
 this.Say(n, "said: ", Message);
 print(n, "said: ", Message);
 };

```

## Common Events

### ADDWEAPON

**Parameters:**

* weaponId

### CHANGECLASS

**Parameters:**

* newclass

### CHANGETEAM

**Parameters:**

* newteam

### DEATH

**Parameters:**

* inflictor
* meansofdeath

### ENT\_ENTER\_RADIUS

**Parameters:**

* ent

### ENT\_LEAVE\_RADIUS

**Parameters:**

* ent

### FEEL\_PAIN

**Parameters:**

* inflictor
* previoushealth
* currenthealth

### GLOBAL\_CHAT\_MSG

**Parameters:**

* whosaidit
* whattheysaid

### GLOBAL\_VOICE

**Parameters:**

* source
* macro id

### HEALED

**Parameters:**

* whohealedme

### KILLEDSOMEONE

**Parameters:**

* victim
* meansofdeath

### MG\_ENTER\_RADIUS

**Parameters:**

* MapGoal

### MG\_LEAVE\_RADIUS

**Parameters:**

* MapGoal

### PRIV\_CHAT\_MSG

**Parameters:**

* whosaidit
* whattheysaid

### PRIVATE\_VOICE

**Parameters:**

* macro id

### PROXIMITY\_TRIGGER

**Parameters:**

* owner
* ent
* position

### REFRESH\_WEAPON

**Parameters:**

* weapon

### REMOVEWEAPON

**Parameters:**

* weaponId

### REVIVED

**Parameters:**

* whorevivedme

### SCRIPTMSG

**Parameters:**

* msg
* data1
* data2
* data3

### TEAM\_CHAT\_MSG

**Parameters:**

* whosaidit
* whattheysaid

### TEAM\_VOICE

**Parameters:**

* source
* macro id

### WEAPON\_CHANGE

**Parameters:**

* weaponId

### WEAPON\_FIRE

**Parameters:**

* weaponId
* projectile entity

## Enemy Territory Events

### AMMO\_RECIEVED

**Parameters:**

* whogaveammo

### FIRETEAM\_CHAT\_MSG

**Parameters:**

* whosaidit
* whattheysaid

### FIRETEAM\_CREATED

**Parameters:**

* fireteamnum

### FIRETEAM\_DISBANDED

**Parameters:**

* none

### FIRETEAM\_JOINED

**Parameters:**

* teamleader

### FIRETEAM\_LEFT

**Parameters:**

* none

### FIRETEAM\_INVITED

**Parameters:**

* teamleader

### FIRETEAM\_PROPOSAL

**Parameters:**

* invitee

### FIRETEAM\_WARNED

**Parameters:**

* warnedby

### MORTAR\_IMPACT

**Parameters:**

* position

### POSTTRIGGERED\_MINE

**Parameters:**

* mine\_entity

### PRETRIGGERED\_MINE

**Parameters:**

* mine\_entity

## Fortress Forever Events

### DETPACK\_BUILDING

**Parameters:**

* detpack entity

### DETPACK\_BUILT

**Parameters:**

* detpack entity

### DISGUISED

**Parameters:**

* asTeam
* asClass

### DISGUISING

**Parameters:**

* asTeam
* asClass

### DISPENSER\_BUILDING

**Parameters:**

* dispenser entity

### DISPENSER\_BUILT

**Parameters:**

* dispenser entity

### DISPENSER\_DAMAGED

**Parameters:**

* inflictor

### DISPENSER\_ENEMYUSED

**Parameters:**

* user entity

### INVALID\_DISGUISE\_CLASS

**Parameters:**

* class

### INVALID\_DISGUISE\_TEAM

**Parameters:**

* team

### RADAR\_DETECTENEMY

**Parameters:**

* detected

### RADIOTAG\_UPDATE

**Parameters:**

* detected

### SENTRY\_BUILDING

**Parameters:**

* sentry entity

### SENTRY\_BUILT

**Parameters:**

* sentry entity

### SENTRY\_DAMAGED

**Parameters:**

* inflictor

### SENTRY\_SPOTENEMY

**Parameters:**

* enemy entity seen

### SENTRY\_UPGRADED

**Parameters:**

* level

## Other Events

### GROUP\_CHAT\_MSG

**Parameters:**

* whosaidit
* whattheysaid

### HEAR\_SOUND

**Parameters:**

* source
* origin
* soundId
* soundName

### PLAYER\_USE

**Parameters:**

* whotouchedme

### SENSE\_ENTITY

**Parameters:**

* sensedclass
* sensedentity

See also: Events