Datguy5
Senior Member
Posts: 629
Threads: 25
Joined: Dec 2011
Reputation:
12
|
RE: I can't get my script to work D:
(06-30-2012, 02:23 PM)Wrathborn771 Wrote: (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 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!
Will it be a total conversion? If not, I recomend you making it one, it's relly simple and I love more "custom" stories.
Here's a tutorial, it takes like a few minutes to do one:
http://www.youtube.com/watch?v=puIfVx0lslA
It wont be a total conversion.Here is the link to the thread: http://www.frictionalgames.com/forum/thread-14108.html And if you want the story to end when the monster kills the player,i suppose you could use a if function(i dont know exactly how they work so i cant help with that :/ ).
|
|
06-30-2012, 03:39 PM |
|