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
Enemy hallucinate event
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#4
RE: Enemy hallucinate event

You could mathematically count the distance between the Player and the monster by using looping timers, GetEntityPosition and GetPlayerPosition (and Pythagorean Theorem), I guess you could skip the Y dimension for simplicity.

Then call SetEnemyIsHallucination or FadeEnemyToSmoke when it gets too close, and at the same time change a GlobalVariable, which would serve as an indicator of the fact whether the enemy is faded to smoke.

It's kind of an overshot for the effect you need, but I'm 99% sure it would work.

12-04-2017, 10:37 PM
Find


Messages In This Thread
Enemy hallucinate event - by User01 - 11-24-2017, 09:17 PM
RE: Enemy hallucinate event - by User01 - 12-03-2017, 03:43 PM
RE: Enemy hallucinate event - by Red - 12-03-2017, 10:23 PM
RE: Enemy hallucinate event - by Darkfire - 12-04-2017, 10:37 PM



Users browsing this thread: 1 Guest(s)