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
Weeping angel script
Wank Offline
Junior Member

Posts: 28
Threads: 11
Joined: May 2013
Reputation: 0
#3
RE: Weeping angel script

(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.
05-30-2013, 12:57 AM
Find


Messages In This Thread
Weeping angel script - by Wank - 05-29-2013, 11:23 PM
RE: Weeping angel script - by Adrianis - 05-30-2013, 12:34 AM
RE: Weeping angel script - by Wank - 05-30-2013, 12:57 AM
RE: Weeping angel script - by PutraenusAlivius - 05-30-2013, 01:28 AM
RE: Weeping angel script - by Wank - 05-30-2013, 01:40 AM



Users browsing this thread: 1 Guest(s)