Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Object movement

 
  • 0 Vote(s) - 0 Average
Pawn Object movement
FeNiixX
Offline

Burgershot Member
Posts: 10
Threads: 4
Joined: Apr 2019
Reputation: 0
#1
2020-10-28, 06:12 PM
Hello, how can I make an object move without stopping from one position to another? That is, when I type a cmd: object1 it moves without stopping until I retype the cmd ...

Can it be achieved with MoveObject? ...

thanks.
Expert*
Offline

Burgershot Member
Posts: 61
Threads: 2
Joined: Apr 2019
Reputation: 4
#2
2020-10-30, 07:40 PM
Uff.
I have no idea how object movement works.
If it's already moving and you want it to move to another location does it start from pos where it was created or from "last pos it was in while moving" ?
or does it have to finish that MoveObject func before ir can move to another location ?
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#3
2020-10-30, 08:31 PM
There is a callback called OnObjectMoved but I don't know if it's smooth enough because I recently saw discussion which states it isn't
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
Josh
Offline

Administrator

Posts: 129
Threads: 1
Joined: Feb 2019
Reputation: 20
#4
2020-10-31, 03:44 AM
(2020-10-30, 07:40 PM)Expert* Wrote: Uff.
I have no idea how object movement works.
If it's already moving and you want it to move to another location does it start from pos where it was created or from "last pos it was in while moving" ?
or does it have to finish that MoveObject func before ir can move to another location ?

The object will move from the last interpolated position (i.e. it was 0,0,0 moving to 100,100,0 but now it is 50,50,0) it will start at 50,50.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode