View Single Post
  #1  
Old 04-08-2006, 02:07 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Gani on Clientside

When a gani is shown clientside, it is supposed to show for everyone. Now, this may only apply to setAni(); as it changes the player's animation for everyone to see.

NPC Code:
//#CLIENTSIDE
function onCreated()
{
this.gang_name = "gang";
}

function onPlayerEnters()
{
setCharAni("era_gang_door_neutral", "");

setshape2 5, 3, {0, 0, 0, 0, 0,
22, 0, 0, 0, 22,
22, 0, 0, 0, 22};

drawoverplayer();
setTimer(0.05);
}

function onTimeout()
{
if (player.y in |y, y+2| && player.x in |x, x+3|)
{
if (player.guild == this.gang_name)
{
setCharAni("era_gang_door_allow", "");
}else
setCharAni("era_gang_door_intruder", "");
}
setTimer(.05);
}



Here is my script. It detects if the player is under it, and if their tag is this.gang_name, it shows one gani. Otherwise, it shows another. This part is working fine, except it only shows it for the player under it. Is there a way to show a gani for everyone on the clientside?
Reply With Quote