![]() |
Not sending the full array
I have this code
PHP Code:
|
Is this in a class or level npc?
|
Why the extra parentheses around temp.heads here?
PHP Code:
|
Quote:
Also: PHP Code:
|
No, I've tried it without parenthesis, same result. I've tried a heap of stuff. I talked to eye and he said it might be that you have to convert it into a string before sending. I've tried this, although I've had no luck but I didn't spend too long on it as well.
|
Quote:
Also this could well be a limitation with triggeraction, triggerclient would be more conventional and definitely achieves this, it would require moving the code into a weapon however. If you absolutely had to keep it as triggeraction, you could try coercing it into a string, and then using tokenize() clientside. |
Use a weapon script instead of a level script. Then you can use triggerserver and triggerclient directly to the server and player.
|
triggeraction does not support sending arrays or the use of commas as a separator for data in one variable.
|
Thanks for the info guys. It really helped :)
|
| All times are GMT +2. The time now is 02:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.