![]() |
this.attr[#] not carrying across, triggerclient not working either
NPC Code: Originally this started out just setting this.attr[3] on the serverside, since I was told by Tig that it apparently carries across through clientside/serverside barriers and whatnot. That quickly turned out to be false, so I stuck a triggerclient in the timeout to simulate this being the case. However, it doesn't work. Simply does not work. This.attr[3] is 0 always. Don't tell me that attrs can't hold arrays either, because they can - a echo on the variable on the serverside tells us this (see /show). Any ideas? |
The problem here is that you are trying to use the attributes as arrays, which won't work. You can, however, use them as string, seperate each element with a comma, and use tokenize(",") on them when reading them. So they would be a semi-array, or something..
Anyway, when you've done converting your code to do that, it will also reflect itself between server- and clientside. |
Try this:
PHP Code:
|
This is what I've come up with:
PHP Code:
|
|
Quote:
|
Quote:
|
Quote:
|
I had no problem with the script I posted. It works fine and I even did some pseudo-smooth-moving and such with the baddy. Subarrays worked and everything.
|
All times are GMT +2. The time now is 03:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.