20.12.2016, 17:10
Hi,
I'm at a loss with actors.
I'm loading data and an actor is created along with a 3DText.
The data is correct and the 3DText and actor are created at the correct location.
When I spawn directly at the location of the actor, he's in the right place.
When I drive away and come back, he has moved. How much he has moved, seems to depend on his location.
Some actors only move a few meters, another moves over 100 meters.
It also appears to make a difference from what direction I'm driving towards the actor.
The one that moves over 100 meters, is located at x = 2800, y = 1814, z = 10.8 (east of Las Venturas near the train tracks) and he faces west.
When I drive towards his position coming from the south, he moves over 100 meters north.
When I approach him from the north, he's at his normal location.
I'm doing nothing else with actors, they're only created when the server starts, there is no SetActorPos anywhere in my entire script.
To fix this, I've tried multiple things using OnActorStreamIn:
- SetActorPos again with his original spawn-coordinates, this does nothing
- destroy the actor and re-create him, but this seem to make him vanish as he constantly streams in after being re-created and gets destroyed over and over again every second
- resync the actor using Emmet's updated actor script (it basically sets the actor way off to another location and resets him to his original location using a timer), but this doesn't make a difference, he still moves 100m north when approached from the south
Can anyone get them to spawn at their positions and let them STAY there, no matter from which direction they are approached?
I'm at a loss with actors.
I'm loading data and an actor is created along with a 3DText.
The data is correct and the 3DText and actor are created at the correct location.
When I spawn directly at the location of the actor, he's in the right place.
When I drive away and come back, he has moved. How much he has moved, seems to depend on his location.
Some actors only move a few meters, another moves over 100 meters.
It also appears to make a difference from what direction I'm driving towards the actor.
The one that moves over 100 meters, is located at x = 2800, y = 1814, z = 10.8 (east of Las Venturas near the train tracks) and he faces west.
When I drive towards his position coming from the south, he moves over 100 meters north.
When I approach him from the north, he's at his normal location.
I'm doing nothing else with actors, they're only created when the server starts, there is no SetActorPos anywhere in my entire script.
To fix this, I've tried multiple things using OnActorStreamIn:
- SetActorPos again with his original spawn-coordinates, this does nothing
- destroy the actor and re-create him, but this seem to make him vanish as he constantly streams in after being re-created and gets destroyed over and over again every second
- resync the actor using Emmet's updated actor script (it basically sets the actor way off to another location and resets him to his original location using a timer), but this doesn't make a difference, he still moves 100m north when approached from the south
Can anyone get them to spawn at their positions and let them STAY there, no matter from which direction they are approached?