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

 
  • 0 Vote(s) - 0 Average
Pawn Animation problems
DjSon231
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Aug 2021
Reputation: 0
#1
2021-08-03, 08:08 PM
Hi!

I have some trouble with setting animations to actors. I'm using 0.3.7-R2 server, with Y_ISI streamer plugin.
How can I set animations like that: [Video: https://www.youtube.com/watch?v=WrBxmP28FIg]
Everytime I preload and load animation, like in the video, my actor is not moving. Is just playing animation tho. There's no difference between "CreateActor" and "CreateDynamicActor". What am I supposed to do?
Gold Party Polska aka SAO is still functioning! One of biggest polish deathmatches + 4fun. I strongly recommend you to check sao-server.com, you won't be bored. :>
Radical
Offline

Burgershot Member
Posts: 148
Threads: 21
Joined: Dec 2020
Reputation: 16
#2
2021-08-03, 08:59 PM
I don't think they are actors, they are NPCs.
Use FCNPC and you will no longer have problems with animation apply.
DjSon231
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Aug 2021
Reputation: 0
#3
2021-08-03, 09:18 PM (This post was last modified: 2021-08-03, 09:18 PM by DjSon231.)
Yes, these are actors. I saw whole bunch of videos, where people could control actors animations, as they could walk around, not staying in one place.Yes, these are actors. I saw whole bunch of videos, where people could greatly control actors animations, as they could walk around, not staying in one place. But the main question is - how?

Moreover, video creator posted his code in pastebin.
Gold Party Polska aka SAO is still functioning! One of biggest polish deathmatches + 4fun. I strongly recommend you to check sao-server.com, you won't be bored. :>
Telzin2k
Offline

Burgershot Member
Posts: 10
Threads: 3
Joined: Oct 2020
Reputation: 0
Location: Rio de Janeiro, Brazil
#4
2021-08-06, 01:18 AM
If you use "CreateActor", you must animate your actor using "ApplyActorAnimation". But if you use "CreateDynamicActor", you must animate your actor using "ApplyDynamicActorAnimation".
DjSon231
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Aug 2021
Reputation: 0
#5
2021-08-07, 11:59 AM (This post was last modified: 2021-08-08, 08:57 AM by DjSon231.)
Allright, but I'm using it. Animations are applied correctly, but are being played like this:

 [Video: https://www.youtube.com/watch?v=xpcd7iFPpwA]
Gold Party Polska aka SAO is still functioning! One of biggest polish deathmatches + 4fun. I strongly recommend you to check sao-server.com, you won't be bored. :>
Slade
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Dec 2020
Reputation: 0
Location: Bosnia & Herzegovina
#6
2022-01-21, 10:22 PM (This post was last modified: 2022-01-21, 10:33 PM by Slade.)
Are you keeping lockx and locky at value 0? If set 0, actor will return to it's orginal position. On 1 it will remain in same position when animation ends.

Edit: Tested it, doesnt work, maybe it is SA-MP version?
ForT
Offline

Burgershot Member
Posts: 5
Threads: 2
Joined: Apr 2019
Reputation: 1
#7
2022-01-22, 06:19 AM
If you want your Actor to move with animations, create your actor with the invulnerable parameter as false (in streamer) or use the SetActorInvulnerable 0 function after CreateActor.
Underground: Roleplay
ip.ugsamp.com:7777

[Image: disc.png] Dimmy#3917
« 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