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 (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
Player Collides With Area Help?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#1
Exclamation  Player Collides With Area Help?

Hey guys, I'm trying to do when a player collides with an area, he is forced to look at another script area, a timer begins, once the timer stops it calls on a function, that function activates an entity.

I've done this:

PHP Code: (Select All)
void OnStart()

AddEntityCollideCallback("Player""ScriptArea_9""Func6"true0);    
}

void OnEnter()
{

}

void OnLeave()


}
void Func6(string &in asParentstring &in asChildint alState)

{
    
SetPlayerActive(false);
    
StartPlayerLookAt("ScriptArea_10"1.0f1.0f"");
    
SetMessage("Messages""LookAtBlood"2);
    
AddTimer(""3"SetEntityActive");
    
}

void SetEntityActive(stringasNamebool abActive)
{
    
SetEntityActive("corpsepile"true);


But when I go to the area, the entity/corpsepile is already active, before I collide with the area and it's set inactive in the editor.
(This post was last modified: 05-04-2013, 08:52 PM by FurtherGames.)
05-04-2013, 08:50 PM
Find


Messages In This Thread
Player Collides With Area Help? - by FurtherGames - 05-04-2013, 08:50 PM



Users browsing this thread: 1 Guest(s)