Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait time script possible ?
Author Message
Tottel Offline
Senior Member

Posts: 307
Joined: Nov 2010
Reputation: 0
Post: #11
RE: wait time script possible ?

void Collide_Area(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("cross_small_metal_1", 20, 50, "");
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
}

In this block you do the actions like letting the player look at something and enable 3 grunts.

void action_step1(string &in asTimer)
{
FadeIn(20);
FadeOut(10);
CompleteQuest("Quest01", "Quest01");
AddTimer("delay_timer", 5, "action_step2");
}

Here you do some fading, put the quest to completed and you will go to action_step2 in 5 seconds. The only problem is that you will NEVER get to this in-game since 'action_step1' is never called.
To make that work, you should do something like:
AddTimer("Blah", 5, "action_step1"); in your very first function, namely: Collide_Area(). This will trigger the fades and the rest, 5 seconds after the grunts show up.

void action_step2(string &in asTimer)
{
ChangeMap("Paranoid.map", "PlayerSpawn1", "", "");
}

Here you will finally change map, and this will happen 5 seconds after you call action_step1, but since action_step1 isn't called, it won't change map.
(This post was last modified: 01-10-2011 07:06 PM by Tottel.)
01-10-2011 07:04 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
wait time script possible ? - sassix - 01-10-2011, 12:25 AM
RE: wait time script possible ? - sassix - 01-10-2011, 06:22 AM
RE: wait time script possible ? - sassix - 01-10-2011, 03:29 PM
RE: wait time script possible ? - sassix - 01-10-2011, 06:07 PM
RE: wait time script possible ? - sassix - 01-10-2011, 06:51 PM
RE: wait time script possible ? - Tottel - 01-10-2011 07:04 PM
RE: wait time script possible ? - sassix - 01-10-2011, 07:46 PM
RE: wait time script possible ? - Tottel - 01-10-2011, 07:53 PM
RE: wait time script possible ? - sassix - 01-10-2011, 07:58 PM
RE: wait time script possible ? - sassix - 01-11-2011, 06:03 PM
RE: wait time script possible ? - sassix - 01-11-2011, 06:54 PM
RE: wait time script possible ? - Tottel - 01-10-2011, 08:08 PM
RE: wait time script possible ? - sassix - 01-10-2011, 08:10 PM
RE: wait time script possible ? - sassix - 01-11-2011, 05:27 PM



User(s) browsing this thread: 1 Guest(s)