Thread: Lantern
View Single Post
  #9  
Old 05-10-2011, 11:48 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
The best method is using a player.attr[n] and a gani script with findimg and the attachtoowner variable set.

yourlightaura.gani

PHP Code:
SCRIPT
function onCreated() {
  
with (findimg(200)) {
    
player.x;
    
player.y;
    
layer 1;
    
attachtoowner true;  // Attaches the light to the player.
    
image "light2.png";
    
red 0;
    
blue 0;
    
green 1;
    
alpha 0.99;
  }
}
SCRIPTEND 
then in a weapon you can set the gani to player's attr:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
player.attr[2] = "yourlightaura.gani";

Also valid is using light2.png as a sprite in your lantern gani, and setting it's COLOREFFECT.
__________________
Quote:
Reply With Quote