The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17+esm15 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 asEntity, int alState)
     {
         if (
alState == 1)
         {
            
SetMoveObjectState("door_valve_open",0.8f);
            
SetPlayerActive(false);
            
StartPlayerLookAt("door_valve_open", 2.0f, 2.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


Messages In This Thread
Need help again T_T - by Quotentote - 01-24-2012, 11:21 PM
RE: Need help again T_T - by Elven - 01-24-2012, 11:56 PM
RE: Need help again T_T - by Quotentote - 01-25-2012, 12:28 AM
RE: Need help again T_T - by Elven - 01-25-2012, 12:34 AM
RE: Need help again T_T - by Shadowfied - 01-26-2012, 09:14 AM



Users browsing this thread: 1 Guest(s)