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
2 scripts
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#4
RE: 2 scripts

(03-01-2012, 04:56 PM)jessehmusic Wrote: here is the hammer to wall



void OnStart()

{
AddUseItemCallback("", "Hammer", "wooden_boards_block", "OpenDoor", true);
}


void OpenDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("wooden_boards_block", false, true);
PlaySoundAtEntity("", "unlock_door", "wooden_boards_block", 0, false);
RemoveItem("Hammer");
SetPropHealth("wooden_boards_block", 0);
}

and here is the wall



void OnStart()

{
AddEntityCollideCallback("armchair_1", "mansionbase_secret_passage_1", "BreakWall", true, 0);

}

void BreakWall(string &in asParent, string &in asChild, string &in alState)
{
SetPropHealth("mansionbase_secret_passage_1", 0);
}

i have it on my "lost" Custom storie it works great!
Yea I've seen it a couple of times before, thank you for providing thr script man



(This post was last modified: 03-01-2012, 09:54 PM by Saren.)
03-01-2012, 09:53 PM
Find


Messages In This Thread
2 scripts - by Saren - 03-01-2012, 08:07 AM
RE: 2 scripts - by Datguy5 - 03-01-2012, 04:56 PM
RE: 2 scripts - by Saren - 03-02-2012, 09:41 AM
RE: 2 scripts - by jessehmusic - 03-01-2012, 04:56 PM
RE: 2 scripts - by Saren - 03-01-2012, 09:53 PM
RE: 2 scripts - by jessehmusic - 03-02-2012, 12:31 AM
RE: 2 scripts - by Saren - 03-02-2012, 07:51 AM
RE: 2 scripts - by SilentStriker - 03-02-2012, 09:45 AM
RE: 2 scripts - by Saren - 03-02-2012, 09:54 AM



Users browsing this thread: 2 Guest(s)