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
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#7
RE: Exploading barrel

(12-10-2011, 05:15 PM)teddan50 Wrote:
(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?


I mean it just like I say. Script an impulse to it and ask some experienced person for making an small explosion particle.

Got a nice sofa
Please come and have a seat for a while

12-10-2011, 05:20 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: 3 Guest(s)