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
What's wrong with this script?
D3AD UPR1S1NG Offline
Member

Posts: 64
Threads: 21
Joined: Apr 2011
Reputation: 0
#3
RE: What's wrong with this script?

(04-21-2011, 07:40 AM)jens Wrote: There is a ; after the ) in the Check01 line which should not be there. There is a , before the ) that should not be there on the CheckPoint line. There must also be "" surrounding the Lantern in RemoveItem();

The whole Check01 will not work as there is no such thing, but what you want to do is probably:

void OnStart()
{
PlayMusic("02_amb_safe.ogg", true, 100.0, 0.0, 1, true);
Checkpoint("Check01", "PlayerStartArea_2", "Check01", "DeathHint", "DeathHint01");
}

void Check01(string &in asName, int alCount);
{
RemoveItem("Lantern");
AddDebugMessage("Checkpoint callback occurred!", false);
}

Thanks Big Grin although it's still coming up with an error is this right?

void OnStart()
{
PlayMusic("02_amb_safe.ogg", true, 100.0, 0.0, 1, true);
Checkpoint("Check01", "PlayerStartArea_2", "Check01", "DeathHint", "DeathHint01");
}

void Check01(string &in asName, int alCount);
{
RemoveItem("Lantern");
AddDebugMessage("Checkpoint callback occurred!", false);

Do you have to place somethin besides a start area in the editor?
}
(This post was last modified: 04-21-2011, 02:33 PM by D3AD UPR1S1NG.)
04-21-2011, 02:18 PM
Find


Messages In This Thread
What's wrong with this script? - by D3AD UPR1S1NG - 04-21-2011, 04:49 AM
RE: What's wrong with this script? - by jens - 04-21-2011, 07:40 AM
RE: What's wrong with this script? - by D3AD UPR1S1NG - 04-21-2011, 02:18 PM
RE: What's wrong with this script? - by MrBigzy - 04-21-2011, 02:23 PM
RE: What's wrong with this script? - by MrBigzy - 04-21-2011, 05:18 PM



Users browsing this thread: 2 Guest(s)