I am making a custom cruise missile but I don't know how to use the rotators to rotate on when a specific weapon is fired, I am pretty new to the game but I know a little speck about the XML editing stuff, scale stuff, and I have that guide simplecheats II for XML editing
@MsMuseumJanitor you're welcome ;)
@overlord5453 yay it works!!! I can make cruise missiles now that have deployable wings, thanks bro. I'm gonna follow you as a thanks
@MsMuseumJanitor it's a function. It will show you how much ammo is left if each weapon. Here, when you fire the cruise missile the ammo count will be zero. And code I wrote checks if ammo is zero. For example, let's say you fired the weapon called
missile
and there was only one. Then the code will give an output of 1 thus activating the rotator.@overlord5453 what does ammo mean? And = 0
@MsMuseumJanitor use this
ammo(name of weapon) = 0
This is what you put in the rotator. Before that, remember to set the minimum range to zero.
@overlord5453 just 1, no order, idk what red text means.
Can you make it into the code that you put in the rotators? The rotators just have 90° deploy angle
First you need to take the following into account.
1• how many cruise missiles are on your plane?
2• there is a specific order on which one is fired first. Usually it's either the first one you attached to the plane or the outermost one to the innermost (the furthest one from cockpit to closest one)
The easiest way to find out is to fire them at a target and remember the order. Then use
ammo(name of weapon) > total number
.Let's say you have three on your plane,
Then put this on the first missile that's fired
ammo(name) < 3
In the second one
ammo(name) < 2
And on the last one
ammo(name) = 0