Battledale_PRC8/_module/nss/jw_mobtransf_usd.nss

22 lines
395 B
Plaintext
Raw Permalink Normal View History

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);
}
}
}