Hi i saw in some Fcm-s,Cs-s...When you pull the lever lights turn off or on so if can someone explain me that how to make it.I never did something like that before :P
void Func(string &in asEntity, int alState) { if(alState == 1) { //If ON }
if(alState == -1) { //If OFF }
Those two little bastards allow you to do what happens whether you pull them up or down, I beleive 1 is if you pull lever up, so basically put the stuff you want to happen in the state 1, if neither that helps try putting the stuff to -1 instead of 1.