View Single Post
  #11  
Old 02-11-2007, 11:22 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Chandler View Post
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 View Post
No you dont..
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..)
__________________
Reply With Quote