|H|TiTanium Posted August 15, 2013 Share Posted August 15, 2013 It works fine, for 1 second, the Ped stops moving, but suddenly it just jumps and starts moving again, I tried using: local mode = exports.slothbot:getBotMode(ped_name) if mode then exports.slothbot:setBotWait(ped_name) end But it doesn't work, so this is the basic function, which stops the Ped for almost 2 seconds, and then fails. They are already global, I just need a way of stopping them til the player types the command again. function ficar ( ) exports.slothbot:setBotWait(tigre1) exports.slothbot:setBotWait(pantera1) exports.slothbot:setBotWait(cachorro1) exports.slothbot:setBotWait(lobo1) exports.slothbot:setBotWait(raposa1) exports.slothbot:setBotWait(cachorro2) exports.slothbot:setBotWait(pitbull1) exports.slothbot:setBotWait(pitbull2) end addCommandHandler( "stay", ficar ) Link to comment
Castillo Posted August 15, 2013 Share Posted August 15, 2013 After you set the bot to wait, what does getBotMode return? Link to comment
|H|TiTanium Posted August 15, 2013 Author Share Posted August 15, 2013 I don't get anything ... I think they are set again to Following. It's the default mode... I tried adding the first code, and I got nothing on debugscript, I don't what is wrong. It just stops moving, and after almost 2 seconds it jumps and starts moving again Link to comment
Castillo Posted August 15, 2013 Share Posted August 15, 2013 function ficar ( ) exports.slothbot:setBotWait(tigre1) local mode = exports.slothbot:getBotMode ( tigre1 ) if ( mode ) then outputChatBox ( mode ) end exports.slothbot:setBotWait(pantera1) exports.slothbot:setBotWait(cachorro1) exports.slothbot:setBotWait(lobo1) exports.slothbot:setBotWait(raposa1) exports.slothbot:setBotWait(cachorro2) exports.slothbot:setBotWait(pitbull1) exports.slothbot:setBotWait(pitbull2) end addCommandHandler ( "stay", ficar ) Use that and see waht it outputs. Link to comment
|H|TiTanium Posted August 15, 2013 Author Share Posted August 15, 2013 It says waiting , but I know it's not, because it's moving ... Link to comment
Castillo Posted August 15, 2013 Share Posted August 15, 2013 Slothbot must have a bug then. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now