Sedlo Posted March 31, 2018 Posted March 31, 2018 Hi folks! I've been playing around with spawning units in via MIST, and it's pretty fun! Here's the situation I want to create: Once a certain flag condition is met, I want two MiG-29s to spawn at a certain BRA from the player. Is that possible? I can't seem to find any documentation to spawn something in a location referenced to an object other than inside a zone. Thanks in advance, Sedlo My Youtube Channel MY DCS MISSIONS
Grimes Posted March 31, 2018 Posted March 31, 2018 Gotta remember back to math class and do some trig. The basics is something like this: {x = math.cos(theta)*dist+ point.x, y = math.sin(theta)*dist+ point.z} theta being the bearing in radians (can math.rad() it) dist being the range value in meters point being the current position of the player. That will give you the x/y coordinates to place a new group at. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Sedlo Posted April 2, 2018 Author Posted April 2, 2018 Thanks, Grimes! I'll try and dig into this in the next week, thanks! My Youtube Channel MY DCS MISSIONS
Recommended Posts