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
Beginner help :o
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#7
RE: Beginner help :o

ok, im seeing a few errors here. I'll try one more time...

void OnStart()
{
AddEntityCollideCallBack("Player", "Script_Area1", "OpenCabinet", true, 1);
}


void OpenCabinet(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("cabinet_nice_1", 1);
}



Try removing anything you dont really need for testing, just put a temporary lantern down and you should automatically start off with full oil, if not.


SetPlayerLampOil(100.0f)
(01-26-2012, 05:05 PM)flamez3 Wrote: If it says that it doesnt reconize AddEntityCollideCallback it either means you torrented the game and it doesnt have all the files or you need to space out the "" and the , Like this:

AddEntityCollideCallBack("Player", "Script_Area1", "OpenCabinet", true, 1);

(01-26-2012, 05:01 PM)SilentStriker Wrote: It's because it's missing a }

Use this

void OnStart()
{
AddEntityCollideCallBack("Player","Script_Area1","OpenCabinet",true,1);
}

if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

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

void OpenCabinet(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("cabinet_nice_1", 1);
}

//===========================================
// This runs when the player enters the map
void OnEnter()
{
}

//===========================================
// This runs when the player leaves the map
void OnLeave()
{

}

He's not. There is already a closing bracket. It's something to do with the callback itself.
and this shouldnt matter, he should still be able to run this function if it is used thousands of times in the normal game

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-26-2012, 05:09 PM by Tripication.)
01-26-2012, 05:08 PM
Find


Messages In This Thread
Beginner help :o - by FinBanana - 01-26-2012, 04:50 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 04:54 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 04:59 PM
RE: Beginner help :o - by SilentStriker - 01-26-2012, 05:01 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:03 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:05 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:08 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:24 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:19 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:22 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:29 PM
RE: Beginner help :o - by Tripication - 01-26-2012, 05:31 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 05:33 PM
RE: Beginner help :o - by flamez3 - 01-26-2012, 05:53 PM
RE: Beginner help :o - by FinBanana - 01-26-2012, 08:14 PM
[SOLVED] - by FinBanana - 01-30-2012, 01:40 PM



Users browsing this thread: 1 Guest(s)