Thread: Setshape Ganis?
View Single Post
  #6  
Old 01-30-2003, 06:42 AM
Kinatt Kinatt is offline
Banned
Kinatt's Avatar
Join Date: Jan 2003
Location: Raleigh North Carolina
Posts: 850
Kinatt is on a distinguished road
Send a message via AIM to Kinatt Send a message via Yahoo to Kinatt
Re: Setshape Ganis?

Ok I did it you may want to try this..
NPC Code:

if (created) {
setimgpart od_fishingboat0.gif,47,0,79,195;
drawunderplayer;
setshape2 5,12,{
0,0,22,0,0,
0,22,22,22,0,
22,22,22,22,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22,22,22,22,22,
22,22,22,22,22,
0,0,22,0,0,
0,0,22,0,0,
};

}
if (playertouchsme) {
playerx=35;
playery=45;
attachplayertoobj 0,id;
this.mode=1;
}
if (created||timeout) {
if (this.mode==1) {
playerx=x+2.5;
playery=y+1.5;
y-=1;
}
timeout=.1;
}



NPC Code:

if (playerenters) {
toweapons Boat;
}
if (weaponfired) {
this.on=1-this.on;
timeout=.05;
}
if(timeout) {
if (this.on==1) {
setshape2 5,12,{
0,0,22,0,0,
0,22,22,22,0,
22,22,22,22,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22, 0, 0, 0,22,
22,22,22,22,22,
22,22,22,22,22,
0,0,22,0,0,
0,0,22,0,0,
};
setani cyn_boat,;
} else {
setani idle,;
}
timeout=.05;
}


the index file of the matrices was not correct the mathematical equation had an error in line 34 on the second section.. also known as Zc^2 it was a pleasure helping.
Reply With Quote