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
wait time script possible ?
DIGI Byte Offline
Senior Member

Posts: 376
Threads: 20
Joined: Dec 2010
Reputation: 1
#7
RE: wait time script possible ?

I haven't tested it, but in theory...
(its 2:30am and I'm sleepy, I'll check out the amnesia script when I wake up)
This might or might not work

void Collide_Area(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("cross_small_metal_1", 20, 50, "");
// sets map_change_part1 as active
SetGlobalVarFloat(change_on_death, 1);
//
SetEntityActive("servant_grunt_2" , true);
SetEntityActive("servant_grunt_1" , true);
SetEntityActive("servant_brute_1" , true);
}

// if map change on death is active and players health goes below 1, play this script
if ( (GetPlayerHealth() < 1) && (change_on_death == 1))
    {
        void map_change_part1(string &in asTimer)
        {
            FadeIn(20);
            FadeOut(10);
            CompleteQuest("Quest01", "Quest01");
            AddTimer("delay_timer", 5, "map_change_part2");
        }
    }
    
    
void map_change_part2(string &in asTimer)
{
ChangeMap("Paranoid.map", "PlayerSpawn1", "", "");
}
01-10-2011, 05:26 PM
Find


Messages In This Thread
wait time script possible ? - by sassix - 01-10-2011, 12:25 AM
RE: wait time script possible ? - by ModManDann - 01-10-2011, 02:16 AM
RE: wait time script possible ? - by DIGI Byte - 01-10-2011, 03:54 AM
RE: wait time script possible ? - by sassix - 01-10-2011, 06:22 AM
RE: wait time script possible ? - by DIGI Byte - 01-10-2011, 06:50 AM
RE: wait time script possible ? - by sassix - 01-10-2011, 03:29 PM
RE: wait time script possible ? - by DIGI Byte - 01-10-2011, 05:26 PM
RE: wait time script possible ? - by sassix - 01-10-2011, 06:07 PM
RE: wait time script possible ? - by Frontcannon - 01-10-2011, 06:47 PM
RE: wait time script possible ? - by sassix - 01-10-2011, 06:51 PM
RE: wait time script possible ? - by Tottel - 01-10-2011, 07:04 PM
RE: wait time script possible ? - by sassix - 01-10-2011, 07:46 PM
RE: wait time script possible ? - by Tottel - 01-10-2011, 07:53 PM
RE: wait time script possible ? - by sassix - 01-10-2011, 07:58 PM
RE: wait time script possible ? - by Frontcannon - 01-11-2011, 05:30 PM
RE: wait time script possible ? - by sassix - 01-11-2011, 06:03 PM
RE: wait time script possible ? - by Frontcannon - 01-11-2011, 06:34 PM
RE: wait time script possible ? - by sassix - 01-11-2011, 06:54 PM
RE: wait time script possible ? - by Tottel - 01-10-2011, 08:08 PM
RE: wait time script possible ? - by sassix - 01-10-2011, 08:10 PM
RE: wait time script possible ? - by DIGI Byte - 01-11-2011, 04:24 AM
RE: wait time script possible ? - by sassix - 01-11-2011, 05:27 PM
RE: wait time script possible ? - by DIGI Byte - 01-12-2011, 05:45 AM



Users browsing this thread: 4 Guest(s)