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 "For" scripts
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: "For" scripts

So, an example:I want the following thing:

There is a library, a shelf. It has 200 books (impossible, I know) and I want that when one of these books touches an area something happens: It should be like this?

for(int i=1;i<=200;i+)
{
AddEntityCollideCallback("book_1_" +i, "Script", "Func", false, 1);
}



void Func /////stuff
{
////More stuff
}


Because it would be painful if I had to put 200 callbacks (one for each book)
Would it be useful?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-06-2012, 10:40 AM
Find


Messages In This Thread
"For" scripts - by The chaser - 10-06-2012, 08:56 AM
RE: "For" scripts - by Ongka - 10-06-2012, 09:46 AM
RE: "For" scripts - by The chaser - 10-06-2012, 10:40 AM
RE: "For" scripts - by Kreekakon - 10-06-2012, 12:39 PM
RE: "For" scripts - by Ongka - 10-06-2012, 01:29 PM
RE: "For" scripts - by The chaser - 10-06-2012, 02:34 PM



Users browsing this thread: 1 Guest(s)