Search found 3 matches

by MoonDog
April 12th, 2016, 3:06 am
Forum: CoD4 Mapping Help
Topic: Can callbacks be called within a map script?
Replies: 8
Views: 14085

Re: Can callbacks be called within a map script?

Should keep the original callback in place. Best way to do that is to overwrite the level.callbackplayerkilled 2 seconds after server has started (because some mods overwrite it 1 second after already...) and call the original callback from within your custom callback. main() { thread hijack(); } h...
by MoonDog
March 23rd, 2016, 9:06 am
Forum: CoD4 Mapping Help
Topic: Can callbacks be called within a map script?
Replies: 8
Views: 14085

Re: Can callbacks be called within a map script?

Can't modify my post while waiting for moderation, but I pasted the wrong callback I believe. Should be [[level.callbackPlayerKilled]]
by MoonDog
March 23rd, 2016, 9:04 am
Forum: CoD4 Mapping Help
Topic: Can callbacks be called within a map script?
Replies: 8
Views: 14085

Re: Can callbacks be called within a map script?

I know I'm late to the thread, but the answer is yes. I don't what you are scripting for, but code hits a script callback that is setup in _callbacksetup.gsc. [[level.callbackPlayerKilled]] So if you have your own custom function you'd like to setup, some where in your map you need to point that to ...