Frictional Games Forum (read-only)
Weeping angel script - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Weeping angel script (/thread-21670.html)



Weeping angel script - Wank - 05-29-2013

Hello everyone! I wanted to know what script I could use to basically be a weeping angel from Doctor Who. If you don't know what that is, it basically moves when you are not looking. So when you look away, it comes closer. I have my statue all set up and able to be inactive and be an entity, but I want him to be like a weeping angel. Help? Thank you.


RE: Weeping angel script - Adrianis - 05-30-2013

It's not going to be easy, but you can use the function SetEntityPlayerLookAtCallback to detect when the player is looking at an area.

- So you would need a series of script areas & deactivated statues
- Keep track of where the player is using AddEntityCollideCallback to set the value of a string when they collide with one of the script areas
- Keep track of which statue is currently active
- Use SetEntityPlayerLookAtCallback to detect when the player is looking at an area away from where the current statue is
- Deactivate the current statue and activate another closer to where the player is

Hope that gives you enough to get going with it, I can't think of a simpler way to do it that would work well sadly...


RE: Weeping angel script - Wank - 05-30-2013

(05-30-2013, 12:34 AM)Adrianis Wrote: It's not going to be easy, but you can use the function SetEntityPlayerLookAtCallback to detect when the player is looking at an area.

- So you would need a series of script areas & deactivated statues
- Keep track of where the player is using AddEntityCollideCallback to set the value of a string when they collide with one of the script areas
- Keep track of which statue is currently active
- Use SetEntityPlayerLookAtCallback to detect when the player is looking at an area away from where the current statue is
- Deactivate the current statue and activate another closer to where the player is

Hope that gives you enough to get going with it, I can't think of a simpler way to do it that would work well sadly...

I'm really not an expert at scripting.


RE: Weeping angel script - PutraenusAlivius - 05-30-2013

Oh man this is hard......thats what she said
Where do you want to do this? The whole map?



RE: Weeping angel script - Wank - 05-30-2013

(05-30-2013, 01:28 AM)JustAnotherPlayer Wrote: Oh man this is hard......thats what she said
Where do you want to do this? The whole map?

Um, I guess. Just on one statue on a later map...

(05-30-2013, 01:40 AM)Wank Wrote:
(05-30-2013, 01:28 AM)JustAnotherPlayer Wrote: Oh man this is hard......thats what she said
Where do you want to do this? The whole map?

Um, I guess. Just on one statue on a later map...

Yes for the whole map.