Actors position not being updated!
#1

Finally, after wasting couple of hours and testing. Now i am able to see whats wrong.

The Actors positions are not being updated. It only works when we manually set it!

When i printed actor's position just when they spawn:
pawn Код:
Actor spawned: 1817.721435, -1089.740844, 24.078125
After applying animation:
pawn Код:
ApplyActorAnimation(pedid, "PED", "WALK_civi", 4.1, 1, 1, 1, 1, 0);
Their position is still :
pawn Код:
Actor's pos: 1817.721435, -1089.740844, 24.078125
Seems like their position is not being updating after they change/move or are using an animation.

Making a fix would really help me to use these actor in the form of zombies and do several other stuff!
Reply
#2

I don't think actors are designed to be moved. They are designed to just stand there and do stationary animations. This is what NPCs are for. Actors are not a replacement for NPCs.
Reply
#3

I don't agree completely. To some sort i can say ApplyActorAnimation is one of the biggest reason to make them move or do other stuff just then making them stay.

NPCs consume player slots and also don't have collisions. So there is no point in using them when we have actors now, which comes with collisions and don't even consume player slots.

Where in case you are worried about the AI of actors, its scriptable in PAWN.
Reply
#4

Actors don't take up player slots because they don't need processing separately and syncing. If an actor is moving, it's going to have to be synced with every client - using bandwidth. That's where NPCs are different. Each NPC has its own process (samp_npc.exe) to process its movement and sync it with players. Actors are designed to be static and just stand there.
Reply
#5

Kalcor have added Actor anim syning in samp 0.3.7 RC6-3. So this means we can make actors move.
Reply
#6

Bug confirmed, and we really need a fix for that!
Reply
#7

This can't be fixed, because the server doesn't handle animations and collisions data.
Reply
#8

Actors move only on the client side. For a server that does not matter.

Sorry for my bad English.
Reply
#9

Did you tried to make a timer for get actor's position after the animation is ended?
Reply
#10

Quote:
Originally Posted by J4Rr3x
Посмотреть сообщение
Did you tried to make a timer for get actor's position after the animation is ended?
No need for a timer but my script have it so yes, but always returned the same position.

Its like not coded properly or left for future updates. The function gives only those coords which are been set manually using SetActorPos or CreateActor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)