I'm trying to figure out how to remove an onStepIn object.
What I mean by that, if you step on this object, it will be removed.
Since the object could be placed anywhere, I don't exactly know how to determine which object it is.
So, lets use the farting pillow for example:
After I step on that, how do I make it disappear?
It could be something simple that I can't think of at the top of my head, so don't call me noob.
What I mean by that, if you step on this object, it will be removed.
Since the object could be placed anywhere, I don't exactly know how to determine which object it is.
So, lets use the farting pillow for example:
LUA:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
doCreatureSay(cid, "Faaart!", TALKTYPE_MONSTER)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return true
end
After I step on that, how do I make it disappear?
It could be something simple that I can't think of at the top of my head, so don't call me noob.