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
Exploading barrel
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Exploading barrel

(12-10-2011, 09:59 AM)teddan50 Wrote: I think that I have done so the callback is being removed, it works when I don't leave the map, but when I reenter the map it starts again.

AddEntityCollideCallback("Player", "ScriptArea_2", "CollideShock", true, 1);

Sure does "true" mean that the callback should be removed after being used once?

Where is that callback being set in, OnEnter or OnStart? You want it to be in OnStart. OnEnter gets called every time you enter the map. OnStart gets called when the map gets loaded within the session for the first time. You also want to think about any other callbacks you have set in OnEnter.

Tutorials: From Noob to Pro
12-10-2011, 11:09 AM
Website Find


Messages In This Thread
Exploading barrel - by teddan50 - 12-09-2011, 11:00 PM
RE: Exploading barrel - by Your Computer - 12-10-2011, 03:06 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 09:59 AM
RE: Exploading barrel - by Your Computer - 12-10-2011, 11:09 AM
RE: Exploading barrel - by teddan50 - 12-10-2011, 05:15 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 05:20 PM
RE: Exploading barrel - by ferryadams10 - 12-10-2011, 11:12 AM
RE: Exploading barrel - by Your Computer - 12-11-2011, 05:53 AM



Users browsing this thread: 1 Guest(s)