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
#2
RE: Naming Items.

Ok nevermind guys,i found the issue....now im trying to fix this key unlocking the door script.


/===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "key_tower_1", "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_tower_1");
AddDebugMessage("KeyOnDoor", false);
}

//===========================================
// This runs when the player enters the map

void OnEnter(){

}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}


The key isn't opening the door....i've looked at several how-to's but im still confused on how this is supposed to go
02-20-2012, 02:17 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: 1 Guest(s)