Security guard events

● ARCHIVED · READ-ONLY
Started by sleepingnamja 4 posts View original ↗
  1. How do I make an event that runs towards you when they see you?
  2. First you're going to need something that'll deal with the guard's line of sight. You can do this with events (there's a guide on the forum) but that is a little complex.

    An easier method is use a custom script. There was one in a Restaff pack, I've seen a few others but that's the only one I can remember, it's very easy to use.

    Once you have the line of sight sorted you'd just need to set what you want to happen when they see you. Someone may have a better solution but I personally would have it turn on a switch (name it "Detected" just so you remember what it is) and then have a 2nd page on the event that requires that switch to be active and have it's move route set to continuously move towards the player (if you want it yo run remember to increase the speed and frequency up from the defaults). The reason I'd use a switch is so that you can have other guards in the area notice the player as well (makes sense that if one saw you they'd call for help), if you just wanted it to be one guard at a time then use a self switch.

    Another alternative would be get a stealth system script as they usually handle line of sight plus what to do when they see the player.

    Here's two I'm familiar with-

    Jet's Stealth System

    Prof Meow Meow's converted to work on Ace (it's in the first reply)
  3. Thanks for the help. I ended up just using the events to set this up because I felt limited by some of the scripts. 

    My only problem now is that I'm trying to give each security guard a flashlight.

    I'm using Khas Awesome Light Effects to do so, but I'm only limited to one.
  4. I could be wrong but from my own usage of it I believe Khas' Light Effects only allows one dynamic light on the map at a time. If the guards aren't moving you could easily just use a static light (and use the existing flashlight images for the light) but if you want them to move around that might not be possible... I would suggest asking in the script's thread about that one.