| Chompy |
02-11-2007 11:22 AM |
Quote:
Originally Posted by Chandler
(Post 1276142)
HTML Code:
SCRIPT
function onPlayerEnters()
{
temp.messageText = player.attr[11];
with(findimg(10))
{
attachtoowner = true;
layer = 2;
x = player.x - random( -0.5, -1);
y = player.y - random( -1, -0.1);
with (emitter)
{
continueafterdestroy = true;
nrofparticles = 1;
emitautomatically = false;
with (particle)
{
lifetime = 0.75;
text = temp.messageText;
mode = 1;
red = 0;
blue = 0;
green = 1;
style = "b";
alpha = 1;
zoom = 0.95;
particle.angle = pi / 2;
particle.speed = 1;
}
addlocalmodifier("range", 0.375, 0.875, "alpha", "replace", 1, 0);
addlocalmodifier("range", 0.1, 0.75, "speed", "replace", 4, 2);
emit();
}
}
}
SCRIPTEND
Should work
|
Hmm, still only shows it for the client (myself), I can't see it on other players;
I am testing this with two players (myself and the gani maker),
we both have the same wnpc which trigger the attr's.
But, when I update the wnpc, only I, as the client can see the emitter text?
Is it me, should I use emitter.particle.text? I could use particle.emitter.code... hmm.. I gotta test the code one
Quote:
Originally Posted by xXziroXx
(Post 1276161)
No you dont.. :noob:
|
I just tested it at my server; without clearing the attr before assigning it to a gani result in that it will only show the gani once (that happened to me), and with clearing the attr before assigning it to a gani will allow it to show everytime I update the wnpc (that happened to me..)
|