Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Naming Items.
Genshien Offline
Junior Member

Posts: 4
Threads: 1
Joined: Feb 2012
Reputation: 0
#4
RE: Naming Items.


void OnStart()
{
AddUseItemCallback("", "Key", "mansion_3", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_3", 0.0f, false);
RemoveItem("Key");
}



Updated the script,still doesn't work correctly.
Key is the name of the key entity,im not using the CustomSubItemTypeName


mansion_3 is the name of the door.
02-20-2012, 05:49 AM
Find


Messages In This Thread
Naming Items. - by Genshien - 02-20-2012, 12:09 AM
RE: Naming Items. - by Genshien - 02-20-2012, 02:17 AM
RE: Naming Items. - by JenniferOrange - 02-20-2012, 04:28 AM
RE: Naming Items. - by Genshien - 02-20-2012, 05:49 AM
RE: Naming Items. - by Your Computer - 02-20-2012, 02:03 PM
RE: Naming Items. - by Genshien - 02-21-2012, 01:18 AM



Users browsing this thread: 2 Guest(s)