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
Simple shelf puzzle?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Simple shelf puzzle?

You could use a "for" in this case.

void OnStart()
{
for (int i = 1, i =30, i++) ///Supposing that there are 30 stuff
{
AddEntityCollideCallback("Stuff"+i, "Area", "Call", true, 1);
}

void Call (string &in asParent, string &in asChild, int alState)
{
AddLocalVarInt("Shelf_variable", 1);
check();
}

void check()
{
if (GetLocalVarInt("Shelf_variable")==30)
{
/////Let the player interact and do something with the shelf
}
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 12-02-2012, 01:56 AM by The chaser.)
12-02-2012, 01:56 AM
Find


Messages In This Thread
Simple shelf puzzle? - by Potato - 11-29-2012, 07:13 AM
RE: Simple shelf puzzle? - by FlawlessHappiness - 11-29-2012, 07:51 AM
RE: Simple shelf puzzle? - by Potato - 11-29-2012, 08:16 AM
RE: Simple shelf puzzle? - by Damascus - 11-29-2012, 08:34 AM
RE: Simple shelf puzzle? - by Potato - 12-02-2012, 01:34 AM
RE: Simple shelf puzzle? - by The chaser - 12-02-2012, 01:56 AM
RE: Simple shelf puzzle? - by TheGreatCthulhu - 12-02-2012, 02:00 AM
RE: Simple shelf puzzle? - by Damascus - 12-02-2012, 03:27 AM
RE: Simple shelf puzzle? - by The chaser - 12-02-2012, 11:24 AM



Users browsing this thread: 1 Guest(s)