Forum Thread
by member
  Posts  
Hammer Editor "weeping angel"? Help! (Forums : Coding & Scripting : Hammer Editor "weeping angel"? Help!) Locked
Thread Options
Jul 3 2012, 3:16pm Anchor

I had a problem making my horror map.. I am trying to create a "weeping angel" like object in my map!
And with that I mean that I am trying to make an object to move closer and closer to you and then kill you when you do not look directly at it.
Hopes someone understands what I am trying to do and help me. :|

(I am new to forums so I am sorry if I posted this in the wrong forum category or something)

Edited by: Thigoron

Jul 8 2012, 5:07am Anchor

not sure on the engine etc you are using and not a programmer but maybe try raycast from you player into there view distance if it hits the angel it cant move if don't hit the angel moves then have some sort collider to say when in area the player dead

Aug 30 2012, 7:48pm Anchor

Yeah, i agree with wiseowlstudios. The best choice appears to be using a raycast from the weeping angels eyes, then you can check for a collision with the player. Another way around this is creating a cross-hair for the game that shoots a raycast and this way you would be able to monitor if the crosshair is currently over the weeping angel.

Java Code for Unity:

javascript code:
function (Update)
{
 if (collider.hit == GameObject.FindGameObjectWithTag("weeping angel"))
 {
   weeping_angel_still = true;
 }

else
 {
   weeping_angel_still = false;
 }
}

Edited by: steadi

Jok3r098
Jok3r098 “A computer is like air conditioning – it becomes useless when you open Windows” - Linus Torvals
Sep 25 2012, 6:29pm Anchor

I forget how open the source engine is, you might be able to look at the source code for the following if you want to see how valve do it, or if you're doing it exclusivley in hammer. 
They might help you to make a composite of entities that behave the way you want.
Developer.valvesoftware.com
Developer.valvesoftware.com

Oct 15 2012, 11:23am Anchor

wait, I don't remember WAs needing to make eye contact, just observing them is enough, meaning you'd have to keep doing a raycast in every direction if something like trigger_look isn't available.
If the engine has AI, then it already has built-in object identification. If you can access it, just add a condition to check and send a trigger message to the angels.

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.