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
