productionwhe.blogg.se

How to create a custom map in starcraft 2
How to create a custom map in starcraft 2









how to create a custom map in starcraft 2

PlayerD - Real - 0 - (Stores is the players D key is down).PlayerS - Real - 0 - (Stores is the players S key is down).PlayerA - Real - 0 - (Stores is the players A key is down).Units - Unit - (Stores each player's respective units).Speed - Real - 0.03 - (The speed at which a unit moves).FaceOffset - Real - 0.0 - (Where each player's respective units is facing).Global VariablesĪ few global variables are needed, the names and types of which are indicated below (Name - Type - Value - (Description)): A taller unit will need a higher value to raise the camera up some. The same goes for the Target - Z Offset - 1. Setting this to 4 will create a third person camera (Although with units other than a marine, you may need to edit this). The main value we need here is the Distance - 4. Target - Z Offset - 1 - (How far the camera is off the ground).Think left to right movement that isn't barrel rolls) Target - Yaw - 180 - (Yaw of the camera.Target - Y - (Doesn't matter, this will change every frame of the game).Target - X - (Doesn't matter, this will change every frame of the game).Target - Pitch - 12 - (Pitch of the camera.Distance - Shadow Clip - 75.0 - (Assuming the distance after which shadows will not be rendered).If anything is closer than this from the camera, it WILL NOT RENDER) 1 - (The distance when nothing will be rendered. If anything is farther than this from the camera, it WILL NOT RENDER) Distance - Far Clip - 300.0 - (The distance from which nothing will be rendered.Setting this to 0 results in a FPS (First Person Shooter), around 4 with be a TPS (Third Person Shooter)) Distance - 4 - (How far the literal camera is from the actual location of the camera.Depth of Field - Start - 0.0 - (The start position of the view from the point of the camera).Depth of Field - End - 8.0 - (The end position of the view from the point of the camera).Depth of Field - Depth - 8.0 - (How far the camera sees).Depth of Field - Amount - 0.0 - (Unknown, feel free to update the wiki article if you know any information about this value).This will be a 28 degrees view from the left of the screen to the right)Īngle - Roll - 0.0 - (How far to roll the camera from the left to right. Angle - Field Of View - 27.996 - (How wide the view is.Set the values to the following (Name - Sub - Value - (Description)): Underneath the "Create Camera" Button, you will see a white box with the value "Camera 001" in it, right click it and hit "Modify Properties". The information provided below is from where you can find out more stuff like WASD triggers and multiple camera options, but the basics for the 3rd person setup is here: Setting up the Camera Object











How to create a custom map in starcraft 2