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
Script Help SetPlayerActive(false/true) Problems.& Grunt Question
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: SetPlayerActive(false/true) Problems.

What you have done is sort of correct.

The way in which a timer works is that when it is activated, it counts upward in seconds, and when it reaches the appropriate time (which you have declared as 5 seconds), it runs a function which is declared from the third set of quotation marks.

This should work correctly.

PHP Code: (Select All)
void lookat(string &in asParentstring &in asChildint alState){
StartPlayerLookAt("look1"1.0f1.0f"");
SetPlayerActive(false);
AddTimer("Timer_1"5.0f"MakePlayerActive");
}

void MakePlayerActive(string &in asTimer)
{
SetPlayerActive(true);


Discord: Romulator#0001
[Image: 3f6f01a904.png]
11-18-2013, 01:52 PM
Find


Messages In This Thread
RE: SetPlayerActive(false/true) Problems. - by Romulator - 11-18-2013, 01:52 PM



Users browsing this thread: 1 Guest(s)