![]() |
my first code
I hope this is the right place to post this, but i'm getting into Gscript2, and want to make sure i do everything correct, i was just wondering if i scripted this correctly, and what i could different and/or better.
PHP Code:
|
Quote:
PHP Code:
|
okay thanks, i'm now working on a script for a handheld item, just for practice, but im not sure, is the setani client or serverside?
|
Quote:
|
so would this be correct?( i doubt it since it since im such a nab, but w/e)
I also can't test it myself on testbed because somehow i can't open my Q inventory. PHP Code:
|
Quote:
I'm not sure why you're setting it serverside. That's being called when you update the weapon, not when you fire it. You would have to use triggers to call that, and that would be really stupid for a gun. Move all the stuff down into the onWeaponFired event. PHP Code:
PHP Code:
PHP Code:
EDIT: There's some information on triggers here (use your browser's "Find" to look for triggerserver and triggerclient). |
| All times are GMT +2. The time now is 04:12 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.