Quote:
Originally posted by Bravo_LAT-Admin
anyone know why this script won't let me pick up the weapon?
if (playertouchsme) {toweapons noobmaker;}
if (weaponfired) {
setani backflip,;
putnpc2 playerx,playery,{
if (created) {
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
canbecarried;
}
}
}
|
If the image is 32x32, for example, you put this in before playertouchsme (because since the server doesn't load the gifs, you need to tell it the dimensions).
NPC Code:
if (created) {
setshape 1,32,32;
}
That way, the NPC Server knows the dimensions, and therefore knows where the player has to be in order to touch the NPC.