after some time of having no hands on game-design-releated stuff i downloaded and fired the the new unreal-engine, cause i was very interested in the new blueprint-editor, but so far I have some problems wrapping around how to really work with it. Saying this, it might be a problem that, so far, I started several years ago with the extendet Warcraf3-Editor (wich has a pretty neat scripting-language allowing classes, objects and so, called vJass) and afterwards moving to StarcraftII. Both were Kind of limited in what to do because most of the stuff in scripting was given to me. Some other programming-action was in college, but what so ever, my problem:
I want to create a Top-Down RTS-like camera. What i have seen so far is, that i need to keep in mind that, if used in multiplayer, there need to be one camera for every player, even when it is via internet.
My approach in my head is the followong. I create a new Class called RTS_Camera. This class contains an Camera-Object, info about the posessing player (playercontroller), assingment to wich map-area (it should not leave them) and the general controll-sheme. And here is the Problem. Normaly I would create a constructor for this class, taking the parameters wich are necesarry (map-area and player), create and camera Object, assign the camera to the player and fire up the controll-sheme for this camera.
So far, the Contruction Script seems to be what is the Constructor of a Blueprint Class, but i cannot take any parameters. I thought creating my own function and use it as a constructor, but they are not static, so i can only call them when the instance of my RTS_Camera is allready created.
Another idear crossing my mind is to put several functions into the class wich would be assignCameraToPlayer(player), assignCameraToMapArea(mapArea) and togleCamera(bool), but for this i would need to check if the camera is allready assigned. So not the best way…
I think I just have a wrong view on how to approach this issue, so I would be thankful if you can give me some advice and help me to understand the idear of blueprints as a whole.