I've been messing with this for bloody ages and either I'm doing something stupid and havent noticed yet or it's just fungled.
PHP Code:
// NPC made by Chicken NaNa (Police)
function onCreated(){
setshape(1,32,32);
canbepulled();
canbepushed();
}
function onActionPushed(){
player.chat = int(random(0,50));
}
function onActionPulled(){
player.chat = int(random(0,50));
}
//#CLIENTSIDE
function onCreated() {
}
Basicly what it's not doing is checking it everytime I pull or push it. It does it in a certain area (next to a platform NPC) which is odd and it doesnt do it anywhere else. (Doesnt show a random number [testing purposes])
Anyone got any clues :X? and yes I have tryed it Clientside just incase and I use a trigger to send to the server, but it doesnt send the trigger and I tested to make sure the trigger should work and it does, but that was using playerchats.
So, it has something to do with the onActionPulled / Pushed.