![]() |
Attr serverside
Well, it doesn't seem to display it correctly... It's showing it clientside, however it refuses to display it serverside.
Here's how I activate it, it removes the attr then re-assigns it. Which works fine HTML Code:
core.onremoveAttr(temp.par1[0]);HTML Code:
triggerclient("weapon", "-systemMain", "editAttr", {{4}, {"c_player-displaytext.gani, " @ temp.messageText}});HTML Code:
SCRIPT |
You only init the particle engine once, so its stuck with the text you init it at.
You need to change the emitters text in some event. |
Quote:
It isn't displaying any text serverside... |
People seem to try to fix things with other people's scripts that aren't broken all too often.
Anyhow, whats this serverside part you speak of? I don't get quite what you're talking about. |
Quote:
|
You have the script in the gani clientsided, remove that and it should work fine
|
Quote:
|
Quote:
No chandler, on player enters only occurs to another player at the moment they first see you since login, after that the onPlayerEnters will not trigger again for that person. therefore, whatever you initilized the text in the emitter to will stay that way in their eyes. Inverness, stop with the unneccessary attacking. It gets old. if you are removing the ani then resetting it (with either set ani or an attribute) within the same cycle, that wont get sent out ot the other players, just locally. the other players get updated with new information at the end of the cycle. if you set a players attr to 3 then "hi" then 2 then "ho" whatever, and then the cycle ends, they will only update it with "ho" |
Well I was just saying because I work with GANI scripts all the time and everything Chandler is doing looks fine to me. The only thing I noticed that his had that mine didnt was the clientside.
|
Quote:
Can't go serverside in ganises :[ |
Its odd the onPlayerEnters() is triggered only once in the gani, is there a reason for it?
Can't say much though since I rarely mess with Gani scripts. Quote:
|
Quote:
|
Quote:
|
When you change the attr[] on serverside then it should correctly invoke the onPlayerEnters() event on the clientside (also make sure the gani is not CONTINUOUS)
When it doesnt display the text eventually also try to echo() the text in onPlayerEnters() |
Quote:
Kristi: Thanks, however I did ''remove'' the attr from the player when I wanted a new message to show. Thanks everyone for the replys |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Making it serverside didn't do ANYTHING.
|
Quote:
the way i suggest around it is that have a timeout in the gani script check if the text attr has changed, and if it has, update it with findimg in the timeout. |
Quote:
Sucks, thanks :p |
| All times are GMT +2. The time now is 11:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.