Sun
Knowledge is power - France is bacon
- Joined
- Jan 26, 2015
- Messages
- 334
- Solutions
- 22
- Reaction score
- 249
Hi there.
I'll be very thankful if someone can teach me how to set a global exhaust.
I made this so when you step on a couch it says "fuck yo couch".
So far I've added 1 sec of individual exhaust, but I'd like it to be global.
I'm fairly new to scripting and nothing I've tried has worked so far.
thanks in advance
I'll be very thankful if someone can teach me how to set a global exhaust.
I made this so when you step on a couch it says "fuck yo couch".
So far I've added 1 sec of individual exhaust, but I'd like it to be global.
I'm fairly new to scripting and nothing I've tried has worked so far.
Code:
function onStepIn(cid, item, position, fromPosition)
local storage = 1000
local time = 1 -- seconds
if(exhaustion.check(cid, storage) == false) then
doCreatureSay(cid, "Fuck yo couch!", TALKTYPE_ORANGE_1)
exhaustion.set(cid, storage, time)
end
end
thanks in advance