Thread: putnpc2
View Single Post
  #22  
Old 09-29-2002, 04:33 AM
Graal2001_Developer1 Graal2001_Developer1 is offline
Registered User
Join Date: Sep 2002
Location: Germany - Lübeck
Posts: 17
Graal2001_Developer1 is on a distinguished road
Send a message via ICQ to Graal2001_Developer1
You can also use callnpc for this

NPC Code:

if (actionserverside) {
putnpc2,playerx,playery, {
if (created) {
showcharacter;
setcharani sword,;
sleep 1;
destroy;
}
if (thedir) dir = (strtofloat(#p(0))+2)%4;
};
callnpc npcscount-1,thedir,#v(playerdir);
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,Sillyweapon,serverside;



would work the same way and doesn't lagg too
__________________
This is TDO
Nothing to say.. just need a webhost for images