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
How do I do [X] questions here
Ongka Offline
Member

Posts: 225
Threads: 3
Joined: Nov 2010
Reputation: 20
#3
RE: A few probably simple problems

Quote:void justanexample(string &in asParent, string &in asChild, int alState)
{
AddTimer("Collapse1", 2.0f, "Collapse_1");
}
void Collapse_1(Collapse1); never put a semicolon behind a void function.
{
SetEntityActive("dungeon_small01_5", true);
SetEntityActive("dungeonrubble1", true);
}

The correct code:
void OnStart()
{
AddTimer("Collapse1", 2.0f, "Collapse_1"); //you can put this into other functions aswell
}

void Collapse_1(string &in asTimer)
{
SetEntityActive("dungeon_small01_5", true);
SetEntityActive("dungeonrubble1", true);
}

[Image: 18694.png]
(This post was last modified: 02-20-2011, 09:51 PM by Ongka.)
02-20-2011, 09:50 PM
Find


Messages In This Thread
How do I do [X] questions here - by Montonago - 02-20-2011, 04:02 PM
RE: A few probably simple problems - by LSunday - 02-20-2011, 04:33 PM
RE: A few probably simple problems - by Ongka - 02-20-2011, 09:50 PM
RE: A few probably simple problems - by Selyp - 02-21-2011, 01:09 AM
RE: A few probably simple problems - by LSunday - 02-21-2011, 12:21 AM
RE: A few probably simple problems - by LSunday - 02-21-2011, 02:09 AM
RE: A few probably simple problems - by Zirg - 02-21-2011, 02:41 AM
RE: How do I do [X] questions here - by LSunday - 02-21-2011, 04:53 AM
RE: How do I do [X] questions here - by Montonago - 02-21-2011, 06:31 PM
RE: How do I do [X] questions here - by Ongka - 02-21-2011, 07:17 PM



Users browsing this thread: 1 Guest(s)