how i can make a break in a script.
ill make a special start up but the scripts are loading to fast.
i will make a similar intro like amnesia.
Sorry for questions about scripting, but iam a noob and try at first time to write scriptes. i understand something but with many things i have problems.
(11-08-2010, 02:43 PM)Everlone Wrote: it wont work. no matter what i try, it crashed.
where i set the time???
Where it read's Time. Also you must place SetTimer inside some function. For example void OnStart().
EDIT: Also time need to be in form 10.0f(=10 seconds)
(This post was last modified: 11-08-2010, 02:54 PM by anzki.)
(11-08-2010, 02:43 PM)Everlone Wrote: it wont work. no matter what i try, it crashed.
where i set the time???
Here is an example for you
void [what ever your using as Collide](string &in asParent, string &in asChild, int alState)
{
AddTimer("Put here the name of your timer, it wont matter what you call it",(Put here the time you want until the timer is activated, for example 1.5f. use f as the "unit". remember no quotations here "".) "And place here the area when what triggers the timer (I'm not 100% what to place here, but I've placed this and it always has worked));
}
for example AddTimer("Agrippakatoaa_01",3.5f,"Agrippakatoaa1");
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Now lets tell the game what it should do when the timer is activated (activation happens in 1,5secs, in my occasion)
This is one of my timers: It creates an particle system to my entity. You can insert what ever you wish inside the { }
AddTimer("Agrippakatoaa_02",3.5f,"Agrippakatoaa2"); ///////////////Now this is just me adding another timer that kicks in after this. Of course you could make it so that it repeats the timer unlimited times, by doing this
}
Hope I cleared things up :p
(This post was last modified: 11-08-2010, 03:04 PM by Hooumeri.)
The player lies in bed on start up. but when start the game you see the player roll her head to left.
I will that the charakter slowly comes to himself. like amnesia intro. the charakter lies too but dont see how he lies down