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
Activate Entity
Cgturner Offline
Junior Member

Posts: 28
Threads: 7
Joined: Sep 2010
Reputation: 0
#3
RE: Activate Entity

(10-18-2010, 05:42 AM)jens Wrote: Have you tried adding a message or sound to InteractGrunt to see if it triggers when you touch the door?

You should not do SetEntityPlayerInteractCallback("cellar_wood01_1", "InteractGrunt", true); AND add InteractGrunt to the door in the level editor. You only do one of them, either use the SetEntityPlayerInteractCallback function or enter a name in the level editor for the interact callback.

The callback is autoremove, so it will be removed on the first interaction, you are sure it is not possible to interact with the door earlier so that when you interact to trigger the grunt the door does not have a callback as its been removed?

I've added a debug message to the callback function, and the message is displayed, but the enemy still isn't spawned. I set autoremove off, but still nothing.
10-18-2010, 05:48 PM
Find


Messages In This Thread
Activate Entity - by Cgturner - 10-18-2010, 05:28 AM
RE: Activate Entity - by jens - 10-18-2010, 05:42 AM
RE: Activate Entity - by Cgturner - 10-18-2010, 05:48 PM
RE: Activate Entity - by jens - 10-18-2010, 08:02 PM
RE: Activate Entity - by Cgturner - 10-19-2010, 05:33 AM



Users browsing this thread: 1 Guest(s)