generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
13
_module/nss/eth_bindhere.nss
Normal file
13
_module/nss/eth_bindhere.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
void main()
|
||||
{
|
||||
object oPersistantInfo = GetItemPossessedBy(GetPCSpeaker(), "persistinfo");
|
||||
if(GetIsObjectValid(oPersistantInfo) != TRUE)
|
||||
{
|
||||
oPersistantInfo = CreateItemOnObject("persistinfo", GetPCSpeaker());
|
||||
}
|
||||
object oBinder = GetNearestObjectByTag("binder", GetPCSpeaker());
|
||||
string sBindWPTag = GetLocalString(oBinder, "BindWP");
|
||||
SetLocalString(oPersistantInfo, "Bind", sBindWPTag);
|
||||
SetLocalInt(oPersistantInfo, "IsBound", 1);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user