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]);
core.assignAttr({temp.par1[0], temp.par1[1]}, true);
Here's how I trigger the code
HTML Code:
triggerclient("weapon", "-systemMain", "editAttr", {{4}, {"c_player-displaytext.gani, " @ temp.messageText}});
Here's the gani script:
HTML Code:
SCRIPT
//#CLIENTSIDE
function onPlayerEnters()
{
temp.messageText = player.attr[4].tokenize()[1];
this.imageIndex++;
if (this.imageIndex > 5)
this.onHideImage(0);
with(findimg(this.imageIndex))
{
attachtoowner = true;
layer = 3;
x = (player.x + 1);
y = (player.y - 1);
with (emitter)
{
continueafterdestroy = true;
emitautomatically = false;
nrofparticles = 1;
with (particle)
{
lifetime = 0.9;
text = temp.messageText;
mode = 0;
red = (temp.messageText.starts("-")? 1: 0);
blue = 0;
green = (temp.messageText.starts("+")? 1: 0);
style = "bi";
alpha = 1;
zoom = 1;
angle = (pi / 1);
speed = 4;
}
addlocalmodifier("range", 0.375, 0.875, "alpha", "replace", 1, 0);
addlocalmodifier("range", 0.1, 0.75, "speed", "replace", 4, 1);
this.emit();
}
}
scheduleevent(0.9, "HideImage", this.imageIndex);
}
function onHideImage(messageIndex)
{
hideimg(temp.messageIndex);
this.imageIndex--;
}
SCRIPTEND
Anyone have any ideas? thanks