![]() |
Sending multiple trigger actions
Is it possible to send multiple trigger actions to the same thing? This is just an example of what i'm mean by sending from client->serverside. It is only doing the first one I try to send.
PHP Code:
|
Yes, it should work fine. I don't know why it isn't for you.
|
send 1, 2, 3 as an array instead of having 3 triggers.
|
I got it to work but i had to put sleeps between each one, any suggestions on something to prevent the delay? @chompy its not really like that it has more than one param, the code i posted was just an example of what i meant.
edit: i'm retarded and had a typo ;[ works now. |
You can also loop if you want it to look kewl D:
|
Quote:
That still doesn't mean that you should be sending so many triggers to the same action so consecutively--use arrays. If you don't want to clutter the trigger command then set up temp. vars that store the information for you and send the temp. vars over as the params to make it look cleaner. |
So I should do it like this?
PHP Code:
PHP Code:
|
top ^^
|
Quote:
Depends on the length of the array, if it really is just 3 numbers then save the extra line and just send the trigger using {1,2,3}, but if it's a rather large string array of some sort then it would be better to use a temp. var. |
Quote:
|
Is -loltest , the name of the weapon?
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
| All times are GMT +2. The time now is 04:06 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.