View Single Post
  #1  
Old 03-07-2011, 11:23 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
disable onPlayerTouchsMe()

When I want a script to do something I simply use:
PHP Code:
function onPlayerTouchsMe() {
//dostuff

but how can I make it that if the player doesnt touch the npc anymore, it will stop? Like:
PHP Code:
function onPlayerTouchsMe() {
setcharani("walk",null);
}
//Now the command/script I would need here. Invented one for example
function onPlayerStopsTouchingMe() {
setcharani("idle",null);

I just know the
PHP Code:
function onPlayerTouchsOther() {
//dostuff

but than it will make it only, if I touch other NPC´s.
Reply With Quote