
05-15-2012, 11:22 PM
|
|
Banned
|
Join Date: Apr 2012
Posts: 89
|
|
Quote:
Originally Posted by callimuc
Use the == only in the if statement. While setting the value just use = . So this should work
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
if (this.wearing == false) {
this.wearing = true;
replaceani("idle", "gani");
replaceani("walk", "gani2");
}
else if (this.wearing == true) {
this.wearing = false;
replaceani("gani", "idle");
replaceani("gani2", "walk");
}
}
|
Doesn't work either. |
|
|
|