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
Lag issue when triggering scripts
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#10
RE: Lag issue when triggering scripts

Oh, I'm sorry then. You could try to make something different though: Why must everything go together? You can put timers to distribute the falling ceiling, like this:



void RoofScare(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("default_entity_1", false);

CreateParticleSystemAtEntity("", "ps_dust_elevator_crash.ps", "Area_BreakDust", false);

PlaySoundAtEntity("", "break_wood.snt", "Area_BreakDust", 0.0f, false);

AddTimer("", 0.8, "Do");

}

void Do (string &in asTimer)
{
SetEntityActive("default_entity_2", true);
SetEntityActive("wooden_board02_*", true);
SetEntityActive("wooden_board03_*", true);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 05-30-2013, 09:25 PM by The chaser.)
05-30-2013, 09:24 PM
Find


Messages In This Thread
RE: Lag issue when triggering scripts - by The chaser - 05-30-2013, 09:24 PM



Users browsing this thread: 1 Guest(s)