Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.