22 lines
395 B
Plaintext
22 lines
395 B
Plaintext
|
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
int nEvent = GetUserDefinedEventNumber();
|
||
|
|
||
|
if (nEvent == 50)
|
||
|
|
||
|
{
|
||
|
if (GetLocalInt(OBJECT_SELF,"triggered")==TRUE)
|
||
|
{
|
||
|
object oWP=GetNearestObjectByTag("jw_newtranstrig_wp");
|
||
|
string sTarget=GetTrapKeyTag(OBJECT_SELF);
|
||
|
CreateObject(OBJECT_TYPE_PLACEABLE,sTarget,GetLocation(oWP));
|
||
|
SetLocalInt(OBJECT_SELF,"triggered",FALSE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|