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
Please remove
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#7
RE: AddEntityCollideCallback

(01-02-2012, 04:50 AM)Khyrpa Wrote:
(01-02-2012, 04:39 AM)eagledude4 Wrote: Before I seen you're reply, I tried SetEntityPlayerInteractCallback("chest_small_2", "TriggerSpider", true); but that didn't work either.

Do I just insert the name of the function in the PlayerInteractCallback field? Just "TriggerSpider"?
I've never used the script functions inside the editor, does it change anything in the .hps file itself?
When you use the functions inside the editor, put your mouse on top of them to see the syntax (string &in asEntity) for PlayerInteractCallback for example. When you write TriggerSpider there, just put:
void TriggerSpider(string &in asEntity)
{//stuff
}



(01-02-2012, 04:46 AM)Statyk Wrote: I figured out the other day playing Unsterblich that spiders do not work properly in Amnesia. They will scurry around and attack you, but the mesh stays at the 0 point of all axis in the level. It's a bug (no pun intended), and unfortunately, does not work like they do in Penumbra. =[ I'm sorry
The spider entity in insan_visions works though, its just with an idle loop animation.

Thanks for the warning about the bug, I switched to the insan_visions spider.
As for the PlayerInteractCallback, are you saying I have to put the whole function in that tiny field box? I'd rather do it in the script itself if that's the case.

As for now, I have SetEntityPlayerInteractCallback("chest_small_2", "TriggerSpider", true);, but the spider is not in the chest when I open it.


Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-02-2012, 05:57 AM by eagledude4.)
01-02-2012, 05:41 AM
Find


Messages In This Thread
Please remove - by eagledude4 - 01-02-2012, 04:31 AM
RE: AddEntityCollideCallback - by Khyrpa - 01-02-2012, 04:36 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-02-2012, 04:39 AM
RE: AddEntityCollideCallback - by Khyrpa - 01-02-2012, 04:50 AM
RE: AddEntityCollideCallback - by Statyk - 01-02-2012, 05:20 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-02-2012, 05:41 AM
RE: AddEntityCollideCallback - by Statyk - 01-02-2012, 04:46 AM
RE: AddEntityCollideCallback - by Khyrpa - 01-02-2012, 06:42 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-02-2012, 06:45 AM
RE: AddEntityCollideCallback - by Statyk - 01-02-2012, 07:08 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-02-2012, 07:27 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 12:34 AM
RE: AddEntityCollideCallback - by flamez3 - 01-03-2012, 12:44 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 02:58 AM
RE: AddEntityCollideCallback - by flamez3 - 01-03-2012, 03:14 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 03:22 AM
RE: AddEntityCollideCallback - by Statyk - 01-03-2012, 03:42 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 03:48 AM
RE: AddEntityCollideCallback - by flamez3 - 01-03-2012, 06:09 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 06:10 AM
RE: AddEntityCollideCallback - by flamez3 - 01-03-2012, 08:03 AM
RE: AddEntityCollideCallback - by eagledude4 - 01-03-2012, 05:13 PM
RE: AddEntityCollideCallback - by eagledude4 - 01-11-2012, 10:02 PM
RE: AddEntityCollideCallback - by Statyk - 01-11-2012, 10:17 PM
RE: AddEntityCollideCallback - by eagledude4 - 01-11-2012, 10:20 PM
RE: AddEntityCollideCallback - by Statyk - 01-11-2012, 10:21 PM
RE: AddEntityCollideCallback - by eagledude4 - 01-11-2012, 10:38 PM



Users browsing this thread: 2 Guest(s)