I’d like to change the camera of all clients created when the level is loaded …
to a static camera already created in the level (or i can dynamically create this camera?)
Now I’m not sure how to start doing this so im very sorry for nor providing some code of my work here…
please forgive me I’m new to UE4 ,
should i call this in the begin play function and give it parameters?
or i should define the function in the character’s header first?
The url should be fixed now. Passing the actor with the camera you want the clients to view through should work for the function call. If you require all elements of the parameter list then default values should work. Here is what the blueprint node for this function looks like if you want to see what the default values are: Set View Target with Blend | Unreal Engine Documentation
Are you getting a compile error or is the result in game not what you expected? If you are getting an error please let me know what it is. From what I can see of this code it looks like you’re cycling through multiple cameras and setting the view to each camera as you pass through rather than setting the client view to a specific camera.
i get a syntax error where SetViewTargetWithBlend is not a member of APlayerController…
mmm i need to have my clients in the for loop and then set the view port i see…
but how would i assign the Actor in the SetViewTargetWithBlend function?
Can you explain what the error is that you’re getting? I was able to create a class based on actor with a box component and camera component. Using a dynamic binding, I was able to switch view from the default third person camera to the camera for my class when overlapping the box. I’ve attached the files for the class I setup for you to use as reference.