9 lines
234 B
Plaintext
9 lines
234 B
Plaintext
|
// if trap is disarmed give EXP to someone and turn OFF the associated trigger
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
GiveXPToCreature(GetLastDisarmed(),10);
|
||
|
SetLocalInt(GetObjectByTag(GetTag(OBJECT_SELF)+"t"),"trapped",FALSE);
|
||
|
DestroyObject(OBJECT_SELF);
|
||
|
}
|