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
Jumpscares
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#12
RE: Jumpscares

(08-15-2012, 03:52 PM)Ank2503 Wrote: 1)how to make entity(flyingmale)after 1 second disabled( SetEntityActive("flyingmale", true); script
2)my entity doesn't impulse,moving,what's the problem?
1. You need to add another timer
2. You need much larger values (you also need to use prop force) for it to have any effect in game.

Try this:


void OnStart()
{
AddEntityCollideCallback("Player", "NAME_OF_AREA", "NAME_OF_FUNC", true, 1);
}

void NAME_OF_FUNC(string &in asParent, string &in asChild, int alState)
{
PlayGuiSound("15_man02_whimp.snt", 1.0f);
AddTimer("t1", 1.0f, "TIMER_NAME");
AddTimer("t2", 3.0f, "TIMER_NAME");
}

void TIMER_NAME(string &in asTimer)
{
if(asTimer = "t1")
{
SetEntityActive("flyingmale", true);
AddPropForce("flyingmale", 0, 25, 80, "world");
PlaySoundAtEntity("Player", "24_iron_maiden", "Player", 0, false);
}
if(asTimer = "t2")
{
SetEntityActive("flyingmale", false);
}
}


You may need to make the prop force values even large (most likely in the hundreds); each prop has different physics so those numbers should be tested and corrected accordingly.

Hope that helped

I rate it 3 memes.
(This post was last modified: 08-15-2012, 03:59 PM by Adny.)
08-15-2012, 03:59 PM
Find


Messages In This Thread
Jumpscares - by Ank2503 - 08-15-2012, 12:06 PM
RE: Jumpscares - by CorinthianMerchant - 08-15-2012, 12:10 PM
RE: Jumpscares - by MaZiCUT - 08-15-2012, 12:15 PM
RE: Jumpscares - by Bas - 08-15-2012, 12:36 PM
RE: Jumpscares - by FlawlessHappiness - 08-15-2012, 02:32 PM
RE: Jumpscares - by Ank2503 - 08-15-2012, 02:43 PM
RE: Jumpscares - by Bas - 08-15-2012, 03:09 PM
RE: Jumpscares - by FlawlessHappiness - 08-15-2012, 03:31 PM
RE: Jumpscares - by Traggey - 08-15-2012, 03:38 PM
RE: Jumpscares - by Ank2503 - 08-15-2012, 03:52 PM
RE: Jumpscares - by Adny - 08-15-2012, 03:59 PM
RE: Jumpscares - by FlawlessHappiness - 08-15-2012, 03:53 PM
RE: Jumpscares - by Ank2503 - 08-15-2012, 04:38 PM
RE: Jumpscares - by Adny - 08-15-2012, 04:54 PM
RE: Jumpscares - by Ank2503 - 08-15-2012, 05:01 PM
RE: Jumpscares - by FlawlessHappiness - 08-15-2012, 05:25 PM
RE: Jumpscares - by Ank2503 - 08-15-2012, 05:28 PM
RE: Jumpscares - by Melvin - 08-15-2012, 05:28 PM
RE: Jumpscares - by Theforgot3n1 - 08-15-2012, 05:39 PM
RE: Jumpscares - by GoranGaming - 08-15-2012, 07:47 PM
RE: Jumpscares - by Adny - 08-15-2012, 07:54 PM



Users browsing this thread: 1 Guest(s)