The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
zombiehacker595 Offline
Member

Posts: 141
Threads: 51
Joined: Mar 2012
Reputation: 3
#1
script help

void Onstart()
{
AddUseItemCallback("", "stone_hammer_chipper", "wooden_boards_block_1", "DestoryBlockage", true);
SetEntityPlayerInteractCallback("key_laboratory_1", "Scare", true);
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "OpenDoor", true, 1);
AddUseItemCallback("OpenDoor", "key_laboratory_2", "level_wood_3", "UnlockLevelDoor", true);
}

void DestoryBlockage(string &in asItem, string &in asEntity)
{
AddPlayerSanity(25);
SetPropHealth("wooden_boards_block_1", 0.0f);
SetEntityActive("wooden_boards_block_broken_1",true);
RemoveItem("stone_hammer_chipper");
SetEntityActive("wooden_boards_block_1", false);
PlaySoundAtEntity("","break_wood_metal.snt", "ScriptArea_1", 0, false);
}

void UnlockLevelDoor(string &in item, string &in entity)
{
SetLevelDoorLocked(entity, false);
RemoveItem("key_laboratory_2");
PlaySoundAtEntity("", "unlock_door", "player", 0, false);
}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "PopupM", 0);
}

void Scare(string &in Entity)
{
SetEntityActive("armour_nice_complete_4", true);
SetEntityActive("armour_nice_complete_5", true);
SetEntityActive("armour_nice_complete_6", true);
}

void OnEnter()
{

}

void Onleave()
{

}

this whole room doesnt work i cant figure it out?
(This post was last modified: 04-13-2012, 11:29 AM by zombiehacker595.)
04-13-2012, 10:10 AM
Find


Messages In This Thread
script help - by zombiehacker595 - 04-13-2012, 10:10 AM
RE: script help - by ClayPigeon - 04-13-2012, 10:20 AM
RE: script help - by zombiehacker595 - 04-13-2012, 10:24 AM
RE: script help - by ClayPigeon - 04-13-2012, 10:28 AM
RE: script help - by zombiehacker595 - 04-13-2012, 10:35 AM
RE: script help - by Your Computer - 04-13-2012, 10:35 AM



Users browsing this thread: 1 Guest(s)