![]() |
how would i subtract a flag serverside
how would i do that
so this is clientside clientr.hp -= 20; what is serverside oh yea and im getting better at scripting :) this is part of my hp sys made all bye myself thankyou people that told me to go to wiki.graal.net thankyou very much |
You need to trigger the serverside portion of a script so it can change the flag.
The command you'll use is called "triggerserver". There's an explanation on this page: http://graal.net/index.php/Creation/Dev/Script/Client (look for the 'triggerserver' command) |
can you give me an example of minusing it
|
Well, I think this Thread is not too old yet.
And I'm not sure if Gulthex got help, so let's give him a small Example =P: PHP Code:
Everytime you fire your Weapon now, you'd lose 20HP... |
Quote:
PHP Code:
Alternatively you can use triggerAction(), which is almost the same. PHP Code:
|
Quote:
Your trigger has to start with "Server" for it to go to that weapon serverside. Otherwise, it's triggering at that location. |
Quote:
|
| All times are GMT +2. The time now is 03:14 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.