generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload
This commit is contained in:
18
_mod/_module/nss/rts_mw_sentmak.nss
Normal file
18
_mod/_module/nss/rts_mw_sentmak.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Sentinel Column Maker
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPC=GetItemActivator();
|
||||
location lLoc=GetItemActivatedTargetLocation();
|
||||
object oItem=GetItemActivated();
|
||||
string sRes="sentinelcolumn";
|
||||
object oPlace=CreateObject(OBJECT_TYPE_PLACEABLE,sRes,lLoc);
|
||||
string sID=GetLocalString(oPC,"sTeamID");
|
||||
if (oPlace!=OBJECT_INVALID)
|
||||
{ // column exists
|
||||
DestroyObject(oItem);
|
||||
SetLocalString(oPlace,"sTeamID",sID);
|
||||
SendMessageToPC(oPC,"A Sentinel Column was created.");
|
||||
} // column exists
|
||||
}
|
||||
Reference in New Issue
Block a user