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
Cant get my custom story to show! PLEASE help!!
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#10
RE: Cant get my custom story to show! PLEASE help!!

Where do i copy and paste the script you gave me? i just followed a tutorial on this really, because i have a key, and wanted it to unlock this door, thats why in the .lang file theres "storage" things. I got a few more things in the script,

////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}




Thats what i have so far, do i just delete that and replace it with what you typed ?
Btw thank you Big Grin

๖ۣۜRaven
07-08-2012, 05:10 PM
Find


Messages In This Thread
RE: Cant get my custom story to show! PLEASE help!! - by Ravenxx - 07-08-2012, 05:10 PM



Users browsing this thread: 2 Guest(s)