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 The books script
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#6
RE: The books script

Taking the ideas of Obliviator & str4wberry:

Spoiler below!


void OnStart()
{
for(int i=1;i<=20;++i)
AddEntityCollideCallback("Book_" + i, "NameOfArea", "Function", true, 1);
}

/*
The names of all books must be "Book_" + an integer
*/

void Function(string &in asParent, string &in asChild, int alState)
{
///Do Stuff
}


You can change the 20 to however many books there are; the only time consuming part of this would be naming the books in the level editor. Good luck!

I rate it 3 memes.
10-05-2012, 11:53 PM
Find


Messages In This Thread
The books script - by The chaser - 10-05-2012, 10:00 PM
RE: The books script - by Obliviator27 - 10-05-2012, 11:00 PM
RE: The books script - by Rapture - 10-05-2012, 11:24 PM
RE: The books script - by The chaser - 10-05-2012, 11:34 PM
RE: The books script - by str4wberrypanic - 10-05-2012, 11:48 PM
RE: The books script - by Adny - 10-05-2012, 11:53 PM
RE: The books script - by Kreekakon - 10-06-2012, 03:46 AM
RE: The books script - by Adny - 10-06-2012, 04:00 AM



Users browsing this thread: 1 Guest(s)