Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
21
_module/nss/jw_traintrap_def.nss
Normal file
21
_module/nss/jw_traintrap_def.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
void replacetrap(object oObject)
|
||||
|
||||
{
|
||||
string sResref=GetTag(oObject);
|
||||
int nRandom=d3();
|
||||
string sRandom=IntToString(nRandom);
|
||||
string sWP=sResref+"_wp"+sRandom;
|
||||
location lLoc=GetLocation(GetWaypointByTag(sWP));
|
||||
DestroyObject(oObject);
|
||||
CreateObject(OBJECT_TYPE_PLACEABLE,sResref,lLoc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oChest=OBJECT_SELF;
|
||||
DelayCommand(5.0,replacetrap(oChest));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user