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 Why wont this work??
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#1
Why wont this work??

[Image: 59ea8b0ea606d5c7808ac3aea6f8b9e7.png]

////////////////////////////
// Run first time starting map
void OnStart()
{
//Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!

AddEntityCollideCallback("Player", "area," "lightsOff", true, 1);

}

void lightsOff(string &in asParent, string &in asChild, int alState)
{
//AddPropForce("lamp_1", -30, 0, 0, "world");
//AddDebugMessage("YES", true);
//GivePlayerDamage(0.5, "Claws", true, false);
}

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

}

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

}

LOL nv

[Image: 4walledkidbanner_zps1514b7f6.png]
(This post was last modified: 06-10-2015, 03:39 AM by 4WalledKid.)
06-10-2015, 03:28 AM
Website Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Why wont this work??

Look at your AddEntityCollideCallback. What's wrong with it? (It's not the placement, its the actual line of code).

Discord: Romulator#0001
[Image: 3f6f01a904.png]
06-10-2015, 07:24 AM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#3
RE: Why wont this work??

Hint: you placed a coma inside the "area" instread of placing it after

06-10-2015, 09:02 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Why wont this work??

moar of a spoiler than a hint #nospoilerspls #spoilertags #idontreallycare

06-10-2015, 04:14 PM
Find




Users browsing this thread: 1 Guest(s)