Hi!
I've now been at this for days as a beginner when it comes to scripts and I can't figure it out.
I have two UH-60L (mod) in a mission, one is cold and the other is hot, both are clients.
As embarking troops in this mod does not seem to work (works fine with the Hueys) I'm trying to use a script to teleport the infantry group to the chopper. I've added radio items for both choppers so that you first spawn an infantry group and then you should be able to teleport that group with another radio item.
For the Cold unit I have the following script and for the Hot one I've just replaced the word Cold with Hot. When inf group 1 has spawned a flag is activated so that both units can't spawn group 1 at the same time, it then moves to the next trigger for spawning group 2. The teleport trigger also has a flag that activates when a group has been teleported preventing both units trying to teleport the same group.
mist.teleportToPoint({groupName='Green 1 Inf 1', point=Group.getByName('UH-60L Cold'):getUnit(1):getPosition().p, action='teleport', radius = 20, innerRadius = 10})
This seems to work fine when I delete one of the units in the ME. If I delete the Cold one, there is no problem with teleporting to the Hot one and vice versa. I can jump in the Cold one as pilot and press the teleport radio call and nothing happens, if I then change my slot to the hot one the group can instantly teleport to that chopper without me ever pressing the radio item. This means that the script is looking for the Hot one even though the conditions for that trigger has not yet been met.
Both scripts have seperate triggers and should only activate if the conditions are met for that trigger.
I have been looking around to find an answer but I've not been able to and that is why I'm here right now.
I'm adding two screenshots of both the Cold and the Hot trigger.
This is surely a beginner mistake on my part and I would appreciate some assistance, it's driving me crazy.
Cyprus Blue Day practice.miz