Jump to content

GDICommand

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by GDICommand

  1. So I recently had a question about trying to refuel and refit a group on shutdown, and then having them idle on the ramp (engines off) until I pushed the engine start command again. After 7 days of no answer, I feel like it's time to try something new. Before I ask my next question, here's my last question for the previous way I wanted to try: So with that out of the way, what I want to try now is respawn individual aircraft (simulating a refuel/refit) when I get the engine shut down event. do local function engineStartup(event) if event.id == world.event.S_EVENT_ENGINE_SHUTDOWN then trigger.action.outText('Received shutdown event for ' .. event.initiator:getName(), 10) mist.respawnGroup('group name', 1) end end mist.addEventHandler(engineStartup) end I can use MIST to do the group (and it seems MOOSE is the same), but that respawns the entire group. My intent is, that if an aircraft in that group is lost or destroyed, then it stays destroyed even after the refit/refuel (or more accurately, respawn). In the event above, I know exactly what unit was just shut down, so it drives me crazy that I can't seem to find a script that does respawn just that one unit. Is there a way to just respawn one single unit in a group and not the entire group?
  2. I can't seem to figure out how to get AI aircraft to refuel after being shutdown. Basically what I'm going for is to have a pair of 2-ship aircraft. While one group is circling the airfield, the second group is on the ramp. When the air group gets to a certain threshold of fuel it will trigger it's landing sequence and the second will start up and take off, starting it's patrol. All that works fine, but what I can't seem to work out is the refueling/refitting. So I think the only two ways to get aircraft to refit+refuel that I've seen are to use the landingReFuArm waypoint action, and to respawn the group. What I'm really trying to avoid is respawning them (with MIST). The reasoning I have (call it being needy) is that if a player is doing an attack on the airfield I want the plane to be there when the bombs/rounds/missiles hit rather than being 'teleported' (or respawned) out of the way. In particular, I want a point track from a TPod to still track. I will admit, I don't know how reasonable that is, because even with the landingReFuArm I think the planes 'blip' out of existence for a split second, so I think the TPod would still lose track. With that said though, when I try to use the landingReFuArm waypoint with no waypoints following it (or with a landing waypoint following it - which produces similar results), the group will immediately try to take back off (one plane actually gets stuck on the runway for some reason). The way I have it set up now is to have the group use the landing waypoint type, and then I'm trying to trigger the startup to go followed by a 'go to waypoint 2', which is a landingReFuArm waypoint. My hope is that the group would refuel/refit before taking off and then resume patrol. Instead what happens is the group just disappears entirely. Am I trying to hard? Is respawning the group my only option? refueling_problem_caucus.miz
  3. How do you do a repair for a standalone non-steam version? Why does the standalone version think I have it installed, and won't allow me to run it. Seems like a bug. If it thinks I have the module installed, and then goes later and finds out that it isn't installed (or in this case, I think it's improperly installed), then it should allow the user to have another attempt at installing. edit: Saw OP "FIXED", and gave that a go. Other readers should check here: http://forums.eagle.ru/showthread.php?t=114030
×
×
  • Create New...