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
Why doesnt it work?
cook Offline
Member

Posts: 103
Threads: 6
Joined: Apr 2011
Reputation: 0
#4
RE: Why doesnt it work?

Kyle is mistaken, the bust is an Entity. You've got the two of them mixed up.
AddEntityCollideCallback("Player", "Bustie", "Bustied", true, 1);
should be
AddEntityCollideCallback("Player", "triggername", "Bustied", true, 1);

You have your Collide area set to one of Busts currently, you want an EntityInteract callback if you want to do that sort of thing - but I assume you want to move the busts when it's out of the players view, so make a trigger(script area) in a nearby area that'll set it off when the player collides with that and then set triggername to what that trigger is called in the Editor.

More complex methods: after a trigger has been stepped in, and the bust looked at - activate a callback/script area that when a player looks at an area away from the bust, the bust disappears. This will make it appear more natural and allows you to do it in line of sight, whilst preventing it from being triggered by the player looking at the area outside of the trigger - from a different angle that might allow sight of the bust.

If one of the Busts is still in the doorway - check you didn't get them mixed up in the Editor - ticked the wrong one active.
(This post was last modified: 07-06-2011, 04:30 AM by cook.)
07-06-2011, 04:27 AM
Find


Messages In This Thread
Why doesnt it work? - by Angerpull - 07-06-2011, 02:46 AM
RE: Why doesnt it work? - by Kyle - 07-06-2011, 02:51 AM
RE: Why doesnt it work? - by Angerpull - 07-06-2011, 02:57 AM
RE: Why doesnt it work? - by cook - 07-06-2011, 04:27 AM
RE: Why doesnt it work? - by Angerpull - 07-06-2011, 05:26 AM
RE: Why doesnt it work? - by cook - 07-06-2011, 05:43 AM
RE: Why doesnt it work? - by Roenlond - 07-06-2011, 10:26 AM
RE: Why doesnt it work? - by jens - 07-06-2011, 10:54 AM



Users browsing this thread: 1 Guest(s)