Quote:
Originally Posted by cbk1994
You shouldn't be using triggeraction for this anyway, it's unreliable, especially when you're doing something that involves moving the NPCs. Generally a better way is to setup some way of uniquely identifying your NPCs (easy if they're DB NPCs/putnpcs).
|
They are put npc's,
PHP Code:
function onActionServerside(command) {
if ( params[0] == "puts" ) {
temp.obj = putnpc2(params[1], params[2], "");
temp.obj.image = "block.png";
temp.obj.join("personal_mewtoo18_test");
}
}
//#CLIENTSIDE
function onWeaponFired() {
triggerServer("gui", this.name, "puts", player.x, player.y);
}
Is how they are being placed currently. I want to make them draggable, and showing there current position while dragged to other players.. I know Tig has something like this using WNPC's for player dragging but certain commands like "this.trigger()" didn't seem to be working on putnpc's for me.
Quote:
Originally Posted by ffcmike
Problem might be that you're using 'setshape2' instead of 'setshape'. Setshape2 is for modifying the tiletype's beneath an NPC.
|
And that, ladies and gentlemen, solved my problem. I was not aware of the difference in setshape() vs setshape2().