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
Creating events at start of Custom Story
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Creating events at start of Custom Story

(03-16-2013, 11:30 AM)ingedoom Wrote: There is an article covering this here. Try to search more thorughly.

Did you even read what event that he wanted? That is NOT the right one. Don't worry, once i make the script, i will edit this post!

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player" "StartArea" "FUNCTION" true 1);
}

void FUNCTION(string &in asParentstring &in asChildint alState)
{   
        
FadeIn(10);
        
SetPlayerCrouching(true);
        
StartPlayerLookAt("Roof_look"66"");
        
AddTimer(""4.0f"TimerLook");
}

void TimerLook(string &in asTimer)
{    
    
StopPlayerLookAt();
    
StartPlayerLookAt("Chair_look"66"");
        
AddTimer(""4.0f"TimerLookArea");
}

void TimerLookArea(string &in asTimer)
{    
    
StopPlayerLookAt();
    
StartPlayerLookAt("Room_look"66"");

Make a script area named StartArea at the player start position.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-16-2013, 12:34 PM by PutraenusAlivius.)
03-16-2013, 12:25 PM
Find


Messages In This Thread
RE: Creating events at start of Custom Story - by PutraenusAlivius - 03-16-2013, 12:25 PM



Users browsing this thread: 1 Guest(s)