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
Need help again T_T
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#1
Need help again T_T

hey guys^^

PHP Code: (Select All)
onstart stuff:
SetEntityConnectionStateChangeCallback("lever_open_01""openbigdoor");

void openbigdoor(string &in asEntityint alState)
     {
         if (
alState == 1)
         {
            
SetMoveObjectState("door_valve_open",0.8f);
            
SetPlayerActive(false);
            
StartPlayerLookAt("door_valve_open"2.0f2.5f"");
            
AddTimer(""9"doortimer");
            
AddTimer(""7"messagetimer");            
        }
    }

void messagetimer(string &in asTimer)
    {
        
SetMessage("Screen""SlideDoor"5.0f);
    }
    
void doortimer(string &in asTimer)
    {
        
StopPlayerLookAt();
        
SetPlayerActive(true);
    } 

well everything works fine but i want to force the player to look there only the first time using the lever (same with the message) is there a possibility to make this? or do i have to delete the stuff :/
(This post was last modified: 01-25-2012, 12:28 AM by Quotentote.)
01-24-2012, 11:21 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: Need help again T_T

use: SetMultiSliderCallback instead Smile

Find about it from wiki!

The Interrogation
Chapter 1

My tutorials
01-24-2012, 11:56 PM
Find
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#3
RE: Need help again T_T

im out of this T_T cya
01-25-2012, 12:28 AM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#4
RE: Need help again T_T

o.0? I am confused...

The Interrogation
Chapter 1

My tutorials
01-25-2012, 12:34 AM
Find
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#5
RE: Need help again T_T

Just add a SetLeverStuckState function. Like this:

PHP Code: (Select All)
void openbigdoor(string &in asEntityint alState)
     {
         if (
alState == 1)
         {

            
SetMoveObjectState("door_valve_open",0.8f);
            
SetPlayerActive(false);
            
StartPlayerLookAt("door_valve_open"2.0f2.5f"");
            
AddTimer(""9"doortimer");
            
AddTimer(""7"messagetimer");    
            
SetLeverStuckState("lever_open_01"1false);       
        }
    } 

I think this shall work.

Current - Castle Darkuan
Other - F*cked Map
01-26-2012, 09:14 AM
Find




Users browsing this thread: 2 Guest(s)