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
Help Needed!
shadowZgamerZ Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jul 2012
Reputation: 1
#1
Brick  Help Needed!

I have made a AddEntityCollideCallback with TRUE set at the end to remove callback. But when I go to other map and then return to this one and when I enter area AddEntityCollideCallback activates again. Callback is under OnEnter(), because you will enter this map several times, and you wont trigger Fuction on your first enter!

Q1: How do I set that it does not repeat after I come back from another map! And I don't wont it to be under OnStart(), because it cant be triggered then! Or is there remove callback function, because I didnt found one!



Q2: And if anyone have time to answer this: How to set, when doors are locked when interacted with message appears (This works), but after doors are unlocked when interacted, to message do not appear!



Sry for English!


Project: Another Penumbra Story - Chapter 1 - Deep Underground
Level Editor: 18%, Scripting: 8%, Gameplay: 3 hours or more!
(This post was last modified: 08-20-2012, 04:18 PM by shadowZgamerZ.)
08-20-2012, 03:57 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#2
RE: Help Needed!

(08-20-2012, 03:57 PM)shadowZgamerZ Wrote: I have made a AddEntityCollideCallback with TRUE set at the end to remove callback. But when I go to other map and then return to this one and when I enter area AddEntityCollideCallback activates again. Callback is under OnEnter(), because you will enter this map several times, and you wont trigger Fuction on your first enter!

Q1: How do I set that it does not repeat after I come back from another map! And I don't wont it to be under OnStart(), because it cant be triggered then! Or is there remove callback function, because I didnt found one!



Q2: And if anyone have time to answer this: How to set, when doors are locked when interacted with message appears (This works), but after doors are unlocked when interacted, to message do not appear!


Sry for English!

The OnEnter() is for functions that trigger each time you enter the map. Try using OnStart(). It should trigger once, and that is it.

In the case that doesn't work, use this.

RemoveEntityCollideCallback(string& asParentName, string& asChildName);

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 08-20-2012, 04:09 PM by Robby.)
08-20-2012, 04:06 PM
Website Find
shadowZgamerZ Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jul 2012
Reputation: 1
#3
RE: Help Needed!

Yeah, I found function void RemoveEntityCollideCallback(string& asParentName, string& asChildName);.
I leaved everything the way it was, just added that function and with it solved both my problems!
Thanks for reply anyway!

Project: Another Penumbra Story - Chapter 1 - Deep Underground
Level Editor: 18%, Scripting: 8%, Gameplay: 3 hours or more!
08-20-2012, 04:17 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#4
RE: Help Needed!

(08-20-2012, 04:17 PM)shadowZgamerZ Wrote: Yeah, I found function void RemoveEntityCollideCallback(string& asParentName, string& asChildName);.
I leaved everything the way it was, just added that function and with it solved both my problems!
Thanks for reply anyway!
Just doing my best.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
08-20-2012, 04:31 PM
Website Find




Users browsing this thread: 1 Guest(s)