HoS_PRC8/_mod/_module/nss/rts_mw_sentmak.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

19 lines
683 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
// 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
}