help with a RTS style game

I am new with coding and I am looking for some help with a RTS style game. I am not looking for somebody to do it for me, just looking for somebody to help point me in the right direction. I am new to unity and don’t know if any of these things are usable in unit. I don’t want to waste my time trying to implement them and find out later I cannot do it. So any advice would be nice.

  1. I want to be able to place objects well the game is running. ”Like placing a building in command and conquer” For example clicking a button and having an object appear at the mouse but changing the color from green to red based on collision detection green if it can be placed and red if it cannot be place. The object that appears at the mouse needs to move with the mouse and snap to the surrounding environment. A really good example of what I’m looking for is the placing traps in orcs must die.

  2. The second thing I’d like help with is how to set up a RTS style camera.

  3. Third thing I would like help with is character collision detection. For example I have one of my characters run up to a window/wall. I would like them to automatically crouch up against the wall. (I know I have to make animations for all of this and play the animations in consecutive order. That’s not what I’m looking for what I am looking for is detecting the interaction with the space) “would the easy way be set up triggers at every point, so that if character is in trigger play animations. If character is outside trigger use default animations.”

That is all for now I know I will have a heck of a lot more questions. I have many game ideas in my head that I’m trying to sort out. So I am trying to figure out ways to make the games.

  1. have a look at gameobject.instantiate and camera.screenpointtoworld (or similar). or do a raycast against the terrain but only on a layer for this to not be blocked by trees and such. for the rotation and obstacle detection you could instantiate a collidermesh at this position and check if it collides with something (one needs rigidbody).

  2. please be more specific. i would have a camera manager script on the camera which reacts to user input. then detect your commands and mouse positions and act accordingly.

  3. your characters need to be aware of their surroundings when they shall react to it. triggers are one possibility. but you could also check what is close with spherecastall or something similar in a coroutine which runs every 1 second or something.

the usual tip for starters is not to start developing their dream game but do some tutorials to get the concepts.