"CreateDynamicActor"
#9

Quote:
Originally Posted by SiaReyes
View Post
SetDynamicActorPos should be put inside OnGamemodeInit()

Example
pawn Code:
new MyActor[2];

public OnGameModeInit()
{
    // Actor 1 = MyActor[0]
     MyActor[0] = CreateDynamicActor(23, 0.0, 0.0, 0.0);
    SetDynamicActorPos(MyActor[0], 0.0, 0.0, 0.0);

    // Actor 2 = MyActor[1]
    MyActor[1] = CreateDynamicActor(23, 0.0, 0.0, 0.0);
    SetDynamicActorPos(MyActor[1], 0.0, 0.0, 0.0);

    return 1;
}
Why though? You already set the coords in CreateDynamicActor, so there's no need to set it again. It won't do anything.

The reason it might disappear is that the actual Actor gets recreated when using SetDynamicActorPos. This takes about 1-2 seconds depending on the update rate of the streamer and server.
If you call it very often in a short time (eg. OnPlayerUpdate) it will constantly be recreated, not allowing it to spawn in actually.

Use it less frequently.
Reply


Messages In This Thread
"CreateDynamicActor" - by darkwing - 11.04.2019, 16:48
Re: "CreateDynamicActor" - by Vizi10 - 11.04.2019, 17:20
Re: "CreateDynamicActor" - by darkwing - 12.04.2019, 13:31
Re: "CreateDynamicActor" - by RenanMsV - 12.04.2019, 13:41
Re: "CreateDynamicActor" - by darkwing - 12.04.2019, 14:12
Re: "CreateDynamicActor" - by RenanMsV - 12.04.2019, 14:29
Re: "CreateDynamicActor" - by darkwing - 12.04.2019, 15:13
Re: "CreateDynamicActor" - by SiaReyes - 12.04.2019, 17:50
Re: "CreateDynamicActor" - by NaS - 12.04.2019, 18:00
Re: "CreateDynamicActor" - by Vizi10 - 12.04.2019, 18:03
Re: "CreateDynamicActor" - by darkwing - 12.04.2019, 20:48
Re: "CreateDynamicActor" - by darkwing - 16.04.2019, 16:25
Re: "CreateDynamicActor" - by FireBoy89 - 16.04.2019, 22:25
Re: "CreateDynamicActor" - by Logic_ - 18.04.2019, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)