Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Noob needs help
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#8
RE: Noob needs help

It might take a while, and I kind of messed up there. I can fix that. Here, try this:

void OnStart()
{
SetPlayerLampOil(0);
if (ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
SetPlayerLampOil(100);
}
SetMessage("Journal", "start", 8.0f);
SetEntityConnectionStateChangeCallback("lever_nice01_1", "StateChangeLever");
SetPlayerInteractCallback("Item", "Officekey", true);
AddUseItemCallback("", "crowbar_1", "prison_section_1", "UserCrowbarOnDoor", true);
SetPlayerInteractCallback("Item", "Officekey", true);
AddEntityCollideCallback("Player", "Brute_1", "Brute1", true, 1);
AddEntityCollideCallback("crowbar_joint_1", "ScriptArea_1", "CollideAreaBreakDoor", true, 1);
AddEntityCollideCallback("Player", "shake_1", "Earthquake", true, 1);
AddEntityCollideCallback("Player", "AreaKillLights", "KillLights", true, 1);
AddEntityCollideCallback("Player", "AreaKillLights2", "KillLights2", true, 1);
SetEntityPlayerInteractCallback("lantern_1", "stuff", true);
}
void Officekey(string &in asEntity)
{
SetEntityActive("Brute2", true);
}

(This post was last modified: 05-01-2011, 03:28 PM by Kyle.)
05-01-2011, 03:16 PM
Find


Messages In This Thread
Noob needs help - by X4anco - 04-30-2011, 12:48 PM
RE: Noob needs help - by Kyle - 04-30-2011, 12:56 PM
RE: Noob needs help - by Karai16 - 05-01-2011, 01:42 AM
RE: Noob needs help - by Kyle - 05-01-2011, 01:50 AM
RE: Noob needs help - by Karai16 - 05-01-2011, 12:09 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:14 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:16 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:20 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:29 PM
RE: Noob needs help - by X4anco - 04-30-2011, 01:00 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:29 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:31 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:34 PM
RE: Noob needs help - by MrBigzy - 05-01-2011, 03:41 PM
RE: Noob needs help - by Kyle - 05-01-2011, 04:24 PM



Users browsing this thread: 5 Guest(s)