View Single Post
  #8  
Old 08-14-2014, 03:30 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Blah64 View Post
I believe, sending params to the script is done:

player.attr[1] = "name.gani,param1,param2,param3,etc.";

then they are set as the params for onPlayerEnters() in the gani script.

As for 'player position', I don't think it actually sets the player's gani when you set the attr, you need to do setani() for that still. I might be wrong, but I think it just sets the script part of the gani, so you don't have to worry about it looking like multiple ganis.

example:

NPC Code:
onActionProjectile()
{
player.attr[2] = "";
player.attr[2] = "display_hp.gani";
scheduleevent(2,"reset",null);
}

onReset()
{
player.attr[2] = "";
}




Note: I usually clear the attr to "" whenever I set the gani script because I remember there were issues with the script not updating if it was already running when you decide to set it again.
I ment where is the attr[]'s gani position in relation to the player's position? In other word how does it know to display below, or above player?
Reply With Quote