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 Weeping Angel enemies
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#6
RE: Weeping Angel enemies

Kiandra's method is a good place to start - if you can get that working, you'll notice a few problems.

First and foremost is the detection for looking at something is based on where the center of your view is, not just what you can see. You could therefore get into the situation where the statue moves while you can actually see it. The solution to this problem is going to be pretty damn complex, to the point where it's going to take a lot of experimentation on your part to get it right. Honestly, if you're new to scripting, i'd leave this problem till you've got a little more experience using script areas & callbacks in other ways (ways that are better explained in tutorials & with more examples etc)

But hard problems are fun, so here's some advice I gave to the last guy asking about weeping angels (there's been quite a few)...

Quote: ... 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
http://www.frictionalgames.com/forum/thread-21670.html

EDIT: I should probably add that the steps above would be important to get a 'dynamic' weeping angel style enemy, meaning it could follow you back & forth & all over the level indefinately. If you want to just include a weeping angel style enemy for a particular moment (i.e. just a scare event) you could cut the problem down significantly, which would also IMO make it significantly less interesting Tongue

(This post was last modified: 06-19-2013, 03:24 PM by Adrianis.)
06-19-2013, 03:08 PM
Find


Messages In This Thread
Weeping Angel enemies - by lizardrock17 - 06-19-2013, 04:30 AM
RE: Weeping Angel enemies - by Tomato Cat - 06-19-2013, 05:22 AM
RE: Weeping Angel enemies - by lizardrock17 - 06-19-2013, 05:31 AM
RE: Weeping Angel enemies - by CarnivorousJelly - 06-19-2013, 05:54 AM
RE: Weeping Angel enemies - by DeAngelo - 06-19-2013, 10:36 AM
RE: Weeping Angel enemies - by Adrianis - 06-19-2013, 03:08 PM
RE: Weeping Angel enemies - by lizardrock17 - 06-19-2013, 05:01 PM
RE: Weeping Angel enemies - by Adrianis - 06-19-2013, 05:41 PM
RE: Weeping Angel enemies - by lizardrock17 - 06-19-2013, 05:57 PM
RE: Weeping Angel enemies - by OriginalUsername - 06-19-2013, 06:59 PM
RE: Weeping Angel enemies - by 7heDubz - 06-20-2013, 04:00 AM
RE: Weeping Angel enemies - by OriginalUsername - 06-20-2013, 06:54 AM
RE: Weeping Angel enemies - by 7heDubz - 06-20-2013, 07:18 AM
RE: Weeping Angel enemies - by OriginalUsername - 06-20-2013, 07:36 AM
RE: Weeping Angel enemies - by 7heDubz - 06-20-2013, 07:40 AM
RE: Weeping Angel enemies - by Adrianis - 06-20-2013, 12:57 PM
RE: Weeping Angel enemies - by lizardrock17 - 06-20-2013, 04:02 PM
RE: Weeping Angel enemies - by lizardrock17 - 06-20-2013, 07:14 PM
RE: Weeping Angel enemies - by lizardrock17 - 06-21-2013, 12:45 AM
RE: Weeping Angel enemies - by PutraenusAlivius - 06-21-2013, 03:42 AM
RE: Weeping Angel enemies - by lizardrock17 - 06-21-2013, 03:46 AM
RE: Weeping Angel enemies - by CarnivorousJelly - 06-21-2013, 05:17 AM
RE: Weeping Angel enemies - by PutraenusAlivius - 06-21-2013, 05:52 AM
RE: Weeping Angel enemies - by lizardrock17 - 06-21-2013, 02:59 PM
RE: Weeping Angel enemies - by Adrianis - 06-21-2013, 05:47 PM



Users browsing this thread: 1 Guest(s)