#Replication - Passing variables issue

1 messages · Page 1 of 1 (latest)

tall plank
#

Does anyone know why this would happen?

Var is set but not working in the same bp else where - I think i have it pinned down to ordering / connecting to the wrong variable in another instance of sorts. though not sure where to go from here to debug?

Any help would be amazing thanks!

celest relic
#

That's an AIController? Those aren't replicated to Clients (let alone the fact your variable that contains it is not replicated).

limpid spade
#

controllers only exist on the server and on the player they are for (if for a player)

#

use the player state as a replicated thing that represents a player instead

#

or their pawn

celest relic
#

@limpid spade Keep in mind this is an AIController. They probably have a specific AI related setup.

tall plank
#

So to give some more information

Playercontroller --> "takes in input"-->Sends to ai controller using an EVENT-->AIController issues move etc

Should i be performing all camera stuffs within the player controller?

And only sending to ai controller for the specific move? (AIMOVE)?

celest relic
#

And the AIContoller is also not owned by the local Player (can't really given there is no local version of the AIController).

#

The RPC you are calling has to be inside the PlayerController, not the AIController.

tall plank
#

UPDATE:
the only thing in the ai controller is the AI Move to - though i dont think its selecting the correct instanced character to move currently as no movment is happening, though alll looks correct on the inputs, destination, char, etc

celest relic
#

The AIController presumably has the character possessed.

#

Just yet it on the server from the AIController