ItsMods
Help Callbacksetup Not Working - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help Callbacksetup Not Working (/Thread-Help-Callbacksetup-Not-Working.html)



Callbacksetup Not Working - Tomsen1410 - 08-07-2011

awesome ItsMods, i want u to give me your best Modders to help me with this thread!!!
Tongue

So my problem:
The Variable (self.jumper_inPrison) is always false. Wayne if a paladin kills me, or i kill myself.

Ok, example:

_rank.gsc:
Code:
checkTeam() { self endon("disconnect"); self waittill("joined_team"); if(self.team == "axis") {self.isPaladin = true; self.isJumper = false; self thread doPaladin();} else {self.isJumper = true; self.isPaladin = false; self thread doJumper();}
Code:
test() { self endon("disconnect"); for(;;) { if(self.isJumper && self.jumper_inPrison) { if(self.jumper_inPrison) {self maps\mp\gametypes\_hud_message::hintMessage("PRISON: YES", 7);} else {self maps\mp\gametypes\_hud_message::hintMessage("PRISON: NO", 7);} } wait 0.01; } }

_callbacksetup.gsc:

Code:
/*================ Called when a player has been killed. self is the player that was killed. ================*/ CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration) { self endon("disconnect"); if(eAttacker.isPaladin && self.isJumper) { self.jumper_inPrison = true; } [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration); }


So, u awesome Modders: Why is it not working?


RE: Callbacksetup Not Working - Pozzuh - 08-07-2011

It should work..

Are you sure you have correctly included the callback setup gsc in your mod.csv?


RE: Callbacksetup Not Working - Tomsen1410 - 08-07-2011

(08-07-2011, 20:26)Pozzuh Wrote: It should work..

Are you sure you have correctly included the callback setup gsc in your mod.csv?

oops : P

aaah, i always forget this fucking mod.csv thingy^^

ok what i have to write in? script,...?


Callbacksetup Not Working - Lemon - 08-07-2011

You don't have to add it to the mod.csv


RE: Callbacksetup Not Working - Pozzuh - 08-07-2011

lmao

rawfile,maps/mp/gametypes/_callbacksetup.gsc


RE: Callbacksetup Not Working - AZUMIKKEL - 08-07-2011

if you add no gsc files to the .ff/.iwd, you dont have to add any


RE: Callbacksetup Not Working - Tomsen1410 - 08-07-2011

Lol, when i kill myself now, the var will be true, too...

AAAH


RE: Callbacksetup Not Working - Lemon - 08-07-2011

Add if(smeansofdeath != "mod_suicide") ?