How do you detect a state in an if statement? For instance the Leviathan has something called "state Deployed" etc. How do you make an if statement under Tick so that at a certain height it goes into a different state?
Also, does State function like Tick? As in it constantly runs through the functions in the state in a way similar to Tick?
Finally, how do you detect how far away from the ground you are? I'm thinking of using KRepulsors and making them drop like how the Manta detects distance before using its dust emitters. I need a vehicle to change to a certain state when it is X distance in the air.
Also, does State function like Tick? As in it constantly runs through the functions in the state in a way similar to Tick?
Finally, how do you detect how far away from the ground you are? I'm thinking of using KRepulsors and making them drop like how the Manta detects distance before using its dust emitters. I need a vehicle to change to a certain state when it is X distance in the air.
Comment