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
I can't get my script to work D:
Wrathborn771 Offline
Junior Member

Posts: 45
Threads: 10
Joined: Jun 2012
Reputation: 0
#5
RE: I can't get my script to work D:

(06-29-2012, 12:01 AM)Datguy5 Wrote: void OnStart()
{
SetEntityCallbackFunc("NAME OF THE ITEM", "Jump1");
AddEntityCollideCallback("Player", "NAME OF THE SCRIPT AREA", "collidemonster", true, 1);
}
void Jump1(string& asName, string& asCallback);
{
AddTimer("scared", 2.4, "Timer_1");
}
void Timer_1(string &in asTimer)
{
SetEntityActive("bro_1", false);
}
void collidemonster(string &in asParent, string &in asChild, int alState)
{
StartCredits("29_amb_end_intense.ogg", true, "Ending", "MainCredits", 7);
}
void OnEnter()
{
}
void OnLeave()
{
}
Try that.Im not sure it will work(i doubt)but test it and say what happened(including a error report if you get one).Also what are you trying to do here?I had no idea Big Grin And i presume that Jump1("Player", "Thanks", "OnPickup"); you tried that when player picks up something,something will happen.Replace the NAME OF THE ITEM with the name of your item(obviously),and the NAME OF THE SCRIPT AREA replace with the name of the script area the player collides with.And thanks for liking my FIRST custom story :3 Have you seen the second one im currently making?
I'm sorry, you got something wrong in there :o
I want a monster (bro_1) to spawn when picking up a note (Thanks), and I want the credits to come up when he has killed the player.
So there is no script_area involved :/

Are you making another one? :o
I will totally play it! Big Grin
Will it be a total conversion? If not, I recomend you making it one, it's relly simple and I love more "custom" stories. Smile
Here's a tutorial, it takes like a few minutes to do one:
http://www.youtube.com/watch?v=puIfVx0lslA
06-30-2012, 02:23 PM
Find


Messages In This Thread
RE: I can't get my script to work D: - by Datguy5 - 06-28-2012, 10:36 PM
RE: I can't get my script to work D: - by Datguy5 - 06-29-2012, 12:01 AM
RE: I can't get my script to work D: - by Wrathborn771 - 06-30-2012, 02:23 PM
RE: I can't get my script to work D: - by Datguy5 - 06-30-2012, 03:39 PM
RE: I can't get my script to work D: - by EXAWOLT - 06-30-2012, 03:48 PM
RE: I can't get my script to work D: - by EXAWOLT - 06-30-2012, 04:49 PM
RE: I can't get my script to work D: - by Cruzore - 06-30-2012, 04:51 PM
RE: I can't get my script to work D: - by Cruzore - 07-01-2012, 12:25 AM
RE: I can't get my script to work D: - by Cruzore - 07-01-2012, 11:59 AM



Users browsing this thread: 1 Guest(s)