![]() |
Err Help with this script
Im trying to get my Item loaded on a server and will be like once this is fixed but why wont this work?
//#CLIENTSIDE function onWeaponFired() { this.active = !this.active; if(this.active) { replaceani("idle", "caenon-idle"); replaceani("walk", "caenon-walk2"); setani("swim", NULL); } else { replaceani("idle", "idle"); replaceani("walk", "walk"); setani("idle", NULL); } } Its supposed to replace the players idle with Caenon-Idle and there walk with Caenon-Walk2 and when its unfired it goes back to normal? |
Is gscript2 enabled on the server?
Are the GANIs downloading properly? (Press F2 ingame) |
No gs2 isnt cant u convert it?
|
Quote:
|
GS1:
PHP Code:
|
That's GS2.
It only works online. |
thnxz
|
got a gs1 vers
|
Quote:
this.active = !this.active; was used to toggle between true and false (!true == false, !false == true), not just to unset it. |
Quote:
|
Quote:
|
Quote:
|
Quote:
Also instead of converting everything to the old engine, put in a support ticket and go for the new engine. It makes a lot more sense (plus it's more fun and a better learning experience) to do write everything in the new engine instead of converting it later. |
Quote:
|
Oh no! Projectshifter is getting old!
this.active = (this.active + 1) % 2; 4 lines? try 4 - 3. |
| All times are GMT +2. The time now is 05:53 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.