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 Is this possible? (NEW question)
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#6
RE: Is this possible? (NEW question)

(06-11-2014, 05:35 PM)Neelke Wrote: Actually, another question. Is it possible to also check if an enemy is searching or hunting the player?

Just set up local (or global, if you're doing it across maps) variables. If you set up a local variable when the monster is spawned (and is therefore looking for the player), and set that variable to a number of your choosing, you can do a similar thing to what you did with the music.

In the script you have for the monster spawning, just add:

PHP Code: (Select All)
SetLocalVarInt(stringasNameint alVal); 

Then you just have to set up a point where it checks for the variable (I'd do it by script box), and do the same check that Mudbill has kindly provided for the music. Big Grin

(This post was last modified: 06-11-2014, 10:10 PM by MsHannerBananer.)
06-11-2014, 10:10 PM
Find


Messages In This Thread
Is this possible? (NEW question) - by Neelke - 06-11-2014, 12:49 PM
RE: Is this possible? - by Mudbill - 06-11-2014, 01:27 PM
RE: Is this possible? - by Neelke - 06-11-2014, 04:18 PM
RE: Is this possible? - by Mudbill - 06-11-2014, 05:24 PM
RE: Is this possible? (NEW question) - by Neelke - 06-11-2014, 05:35 PM
RE: Is this possible? (NEW question) - by MsHannerBananer - 06-11-2014, 10:10 PM



Users browsing this thread: 2 Guest(s)