Search the Community
Showing results for tags 'if/then/else loop'.
Found 1 result
-
I am attempting to edit the Virtual Vehicle Spawner by Tonic to allow me to spawn only planes on the Nimitz carrier and only helicopters on the Atlas LHD. I have the code working 95% of the way I would like but I am running into an issue where planes will spawn on the LHD after I have spawned helicopters. A brief description of the code as I read it: Create the vehicle defined under _className earlier in the code on a previously determined position. Disable the damage of that vehicle. Check to see if there is a plane within five meters of the object named nimitz_pad_1 and select it. Check to see if there is a helicopter within five meters of the object named wasp_pad_1 and select it. Check to see if there is a helicopter within five meters of the object named wasp_pad_2 and select it. If there is not a plane within five meters of the object named nimitz_pad_1 then set the vehicle's direction and move it to the object named nimitz_pad_1. If there is a plane within five meters of the object named nimitz_pad_1 then set the vehicle's direction and move it to the object named nimitz_pad_2. If there is not a helicopter within five meters of the object named wasp_pad_1 then set the vehicle's direction and move it to the object named wasp_pad_1. If there is a plane within five meters of the object named wasp_pad_2 then set the vehicle's direction and move it to the object named wasp_pad_3. If there is a plane within five meters of the object named wasp_pad_1 then set the vehicle's direction and move it to the object named wasp_pad_2. I'm beating my head into a wall on this one. I know it is something in the code but four people looking at it together couldn't sort out exactly what my issue it. Thanks in advance for the help!
- 1 reply
-
- base class
- if/then/else loop
- (and 3 more)