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
Force player to follow enemy until it disappear help.
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#2
RE: Force player to follow enemy until it disappear help.

void OnStart()
{    
    AddEntityCollideCallback("MonsterEntity", "Area", "StopLook", false, 1);
}

void OnMonsterSpawns // Change this to whenever the enemy spawns
{    
    StartPlayerLookAt("MonsterEntity", 1.0f, 1.5f, "LookedAt");
}

void LookedAt()
{    
    StartPlayerLookAt("MonsterEntity", 1.0f, 1.0f, "LookedAt");
}

void StopLook(string &in par, string &in chi, int state)
{  
    StopPlayerLookAt();
}
(This post was last modified: 07-21-2013, 05:47 PM by ClayPigeon.)
07-21-2013, 05:46 PM
Find


Messages In This Thread
RE: Force player to follow enemy until it disappear help. - by ClayPigeon - 07-21-2013, 05:46 PM



Users browsing this thread: 2 Guest(s)