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
Simple if -problem
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#6
RE: Simple if -problem

Well, it's too bad you can't really make it work without having conditions.

I would had tried two different approaches to this:

Option 1:
If you have a collide box where you scripted that a mob shall spawn, add a timer in it.

Code that timer to use your script and outside of your if-statement, make a timer with the same name as the one you're currently in (so that it repeats [OR make a for/while-loop, but I don't loop it that way in Amnesia ^^]).

The script should be executed when the player has less than 50 health less, so inside the if-statement, put a RemoveTimer script BELOW the FadeEnemyToSmoke script.

Option 2:
Make a collide script with the actual monster, so when the player collides with the monster with less than 50 health, he shall fade away.

Creator of The Dark Treasure.
(This post was last modified: 01-02-2012, 02:27 AM by Linus Ågren.)
01-02-2012, 02:27 AM
Website Find


Messages In This Thread
Simple if -problem - by Sazureth - 01-02-2012, 01:28 AM
RE: Simple if -problem - by Linus Ågren - 01-02-2012, 01:40 AM
RE: Simple if -problem - by Sazureth - 01-02-2012, 02:14 AM
RE: Simple if -problem - by Linus Ågren - 01-02-2012, 02:19 AM
RE: Simple if -problem - by Sazureth - 01-02-2012, 02:22 AM
RE: Simple if -problem - by Linus Ågren - 01-02-2012, 02:27 AM
RE: Simple if -problem - by Sazureth - 01-02-2012, 02:33 AM



Users browsing this thread: 3 Guest(s)