SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/04/2012, 09:47 PM   #1
lolumadd_
Gangsta
 
Join Date: Apr 2011
Posts: 625
Reputation: 161
Default Bot won't set angle

SetPlayerFacingAngle

and

SetMyFacingAngle

on my NPC's

REFUSE to function. Any help?

Also, If you teleport a bot to you, it teleports the first time. Everytime I try to teleport it after that, it doesn't work until I go a far enough distance so the bot streams out.

If you spawn the bot it teleports to the last place you teleported it to
__________________




Last edited by lolumadd_; 29/04/2012 at 03:51 AM.
lolumadd_ is offline   Reply With Quote
Old 27/04/2012, 09:51 PM   #2
ReneG
High-roller
 
Join Date: Oct 2011
Location: Sublime Text 2
Posts: 1,906
Reputation: 337
Default Re: Bot won't set angle

It's SetMyFacingAngle for NPC's.
ReneG is offline   Reply With Quote
Old 27/04/2012, 09:53 PM   #3
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 79
Reputation: 12
Default Re: Bot won't set angle

pawn Code:
SetMyFacingAngle(270);
Crazymax is offline   Reply With Quote
Old 27/04/2012, 10:01 PM   #4
lolumadd_
Gangsta
 
Join Date: Apr 2011
Posts: 625
Reputation: 161
Default Re: Bot won't set angle

But it changes dynamically...and I can't find how to make the script and botscript communicate because the dam OnClientMessage callback in the NPC mode won't work!
__________________



lolumadd_ is offline   Reply With Quote
Old 27/04/2012, 10:07 PM   #5
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 79
Reputation: 12
Default Re: Bot won't set angle

what? tell me what you mean... explain

http://wiki.sa-mp.com/wiki/NPC:OnClientMessage

here.. and search for more examples on the forums.. i'm sure there's plenty
Crazymax is offline   Reply With Quote
Old 27/04/2012, 10:26 PM   #6
lolumadd_
Gangsta
 
Join Date: Apr 2011
Posts: 625
Reputation: 161
Default Re: Bot won't set angle

and SetMyFacingAngle via the bot script doesn't work either.
__________________



lolumadd_ is offline   Reply With Quote
Old 27/04/2012, 10:29 PM   #7
Danny1
Big Clucker
 
Join Date: Feb 2012
Location: Bosnian and Herzegovina
Posts: 81
Reputation: 0
Default Re: Bot won't set angle

Post here you code.
Danny1 is offline   Reply With Quote
Old 27/04/2012, 10:31 PM   #8
lolumadd_
Gangsta
 
Join Date: Apr 2011
Posts: 625
Reputation: 161
Default Re: Bot won't set angle

SetPlayerFacingAngle and SetMyFacingAngle won't have any effect. I don't have ANY other code that could possibly be interfering.
__________________



lolumadd_ is offline   Reply With Quote
Old 27/04/2012, 10:46 PM   #9
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 79
Reputation: 12
Default Re: Bot won't set angle

why not effect? Did u try in your gamemode/bot fs? SetMyFacingAngle

NOT SetPlayerFacingAngle
Crazymax is offline   Reply With Quote
Old 29/04/2012, 12:04 AM   #10
lolumadd_
Gangsta
 
Join Date: Apr 2011
Posts: 625
Reputation: 161
Default Re: Bot won't set angle

Also, If you teleport a bot to you, it teleports the first time. Everytime I try to teleport it after that, it doesn't work until I go a far enough distance so the bot streams out.

REALLY need help on this.
__________________



lolumadd_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
angle fissekarl Help Archive 3 06/05/2011 10:02 AM
Angle Help Venice Help Archive 1 02/04/2011 02:39 PM
[HELP] Is it possible to take angle from CP? RoCK'N'Rolla Help Archive 6 26/08/2010 08:45 PM
Getting Car Angle xCoder Help Archive 2 19/09/2009 04:51 PM
Angle Calgon Help Archive 2 29/08/2009 06:57 AM


All times are GMT. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.