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
teddan50 Offline
Junior Member

Posts: 15
Threads: 2
Joined: Dec 2011
Reputation: 0
#6
RE: Exploading barrel

(12-10-2011, 11:09 AM)Your Computer Wrote:
(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.



I had it on OnEnter, but now when I have it on OnStart it works perfectly!

Thanks alot!


(12-10-2011, 11:12 AM)ferryadams10 Wrote: Maybe you should add some impulse to it and make a small explosion particle system.


What exactly do you mean? I am new to scripting, so please explain!

I have added sanitydamage if that's what you mean?
(This post was last modified: 12-10-2011, 05:17 PM by teddan50.)
12-10-2011, 05:15 PM
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: 2 Guest(s)