Post: quick gsc function question
09-03-2015, 03:38 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); just a quick question i have a function called in playerspawned() and i want it to not apply to one of the teams, i know i could just define it to only be for a certain team, but in my case i can't and can't be bothered setuping up that

is there a simple way i can make it so it ignores it for example

if(self == on other team blah blah())
{
self thread examplefunction(); == false;
}

while that above is not right at all and would give a syntax error
hopefully it gives you an idea of what i'm looking for

thanks Smile
(adsbygoogle = window.adsbygoogle || []).push({});
09-04-2015, 09:25 AM #11
didnt work for me, that was applying it for the hunter only and i want it so it works for everyone but him.

,btw if u havent realised the if(self.name != level.hunter.name && level.gamestarted == true) is from your michael myers gamemode. i plan on releasing this gamemode on working on eventually and i used a few things from your gamemode if thats okay with you
09-04-2015, 12:33 PM #12
HiddenHour
I defeated!
Originally posted by OfficialCoolJay View Post
didnt work for me, that was applying it for the hunter only and i want it so it works for everyone but him.

,btw if u havent realised the if(self.name != level.hunter.name && level.gamestarted == true) is from your michael myers gamemode. i plan on releasing this gamemode on working on eventually and i used a few things from your gamemode if thats okay with you


I don't mind at all. I release the sources so people can learn and make some cool stuff other than menus Winky Winky If you have a skype I can add you so I can try to help you a bit better,
09-05-2015, 08:16 AM #13
I found how to do it myself and i thought i would share it so it can help others who are looking for the same answer as me

this is how i did it

    examplefunction()
{
if (self.examplefunction == true)
{
//function stuff in here
}
if(self.name == level.hunter.name && level.gameStarted == true)
{
self.examplefunction = false;
}
}


thankyou for all the support anyways Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo