Banned
|
 |
Join Date: Jan 2003
Location: Raleigh North Carolina
Posts: 850
|
|
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. |
|