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
Scripts not working
Bozcovich Offline
Junior Member

Posts: 11
Threads: 2
Joined: Jan 2012
Reputation: 0
#10
RE: Scripts not working

That didnt work either, but i just tried this and it worked:


void OnStart()

{
AddUseItemCallback("", "SUPER HAX KEY THAT SUCKS", "das door", "hax", true);
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);

for(int i = 0;i < 10;i++)
{
GiveItemFromFile("tinderbox", "tinderbox.ent");
}
}
}

void hax(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("das door", false);
PlaySoundAtEntity("", "unlock_door", "door" , 0, false);
RemoveItem("SUPER HAX KEY THAT SUCKS");

}




void OnEnter()
{

}


void OnLeave()
{

}
01-13-2012, 11:26 PM
Find


Messages In This Thread
Scripts not working - by Bozcovich - 01-12-2012, 09:54 PM
RE: Scripts not working - by Statyk - 01-13-2012, 12:23 AM
RE: Scripts not working - by flamez3 - 01-13-2012, 01:29 AM
RE: Scripts not working - by Bozcovich - 01-13-2012, 09:22 PM
RE: Scripts not working - by Unearthlybrutal - 01-13-2012, 10:34 PM
RE: Scripts not working - by Bozcovich - 01-13-2012, 10:53 PM
RE: Scripts not working - by Unearthlybrutal - 01-13-2012, 10:58 PM
RE: Scripts not working - by Bozcovich - 01-13-2012, 11:03 PM
RE: Scripts not working - by oscar1007 - 01-13-2012, 11:13 PM
RE: Scripts not working - by Bozcovich - 01-13-2012, 11:26 PM
RE: Scripts not working - by Unearthlybrutal - 01-14-2012, 12:13 PM



Users browsing this thread: 1 Guest(s)