Jump to content

Recommended Posts

Posted

Hellow fellows...

 

I am working in missions for UH.

 

I am using, CTTS.lua, Fire Supression script, Flak, grenade Smokemarkers for UH.

 

Now I need something. Since the transported unit does not obey the mission editor triggers once transported I want them to call an evacuation, and to mark themselves with Orangesmoke.

 

I want to use

 

mist.flagFunc.group_alive_less_than('extract1', '100', '51',nil,'20', nil)

 

vars =

{

groupName = string groupName,

flag = number/string flag,

percent = number percent,

stopFlag = number/string stopFlag,

interval = number interval,

toggle = boolean toggle,

}

 

Once I have the flag 100 activated, when ectract1 group is with less of 51% alive. I need a to write a script like this, but I dont know the proper function Groupsmoke.

 

Groupsmoke(group, flag, coloursmoke)

Posted

Hello again...

 

well. I have been trying to do this script, but, has been impossible.

 

I cannot even make this to work

 

Trigger: Time more 10

Action: do script

 

do

trigger.action.smoke(mist.getAvgPos(mist.makeUnitTable({'[g]extract1'})), "Orange")

end

 

what is wrong???

Posted

I am not Awesome at script, but I can take a look at what you are trying to do. did not want you think no one was reading your post.

 

thanks

 

Falcon

MSI Creator X299 - INTEL i9 - 10900X 3.7 GHZ - 32 GB Corsair Dominator DDR4 - EVGA GTX 1080 FTW AC2

Posted

ESAc_matador

The following works

do

trigger.action.smoke(mist.getAvgPos(mist.makeUnitTable({'[g]extract1'})), trigger.smokeColor.Orange)

end

 

changes: remove the space in 't able'

change the "orange" to trigger.smokeColor.Orange

 

works great.

 

thanks

76th

Falcon

MSI Creator X299 - INTEL i9 - 10900X 3.7 GHZ - 32 GB Corsair Dominator DDR4 - EVGA GTX 1080 FTW AC2

Posted

Thank you!

 

It works, BUT.

 

It seems to be a problem if previously I use the CTTS script. IF through the radio menu I load and unload the group.

 

Radio menu > F10 Other... > F1 Load/Unload troops.

 

then, there is an error.

 

This should be due to the CTTS.lua file. mmmm what a pitty.

 

I think, for us HUEYs pilots would be awesome, if a deployed unit can ask for evacuation when they are suffering too much damage.

 

Any help ?

Posted

looking at the CTTS I would have to say that the name of the dropped unit is not staying as extract1 it is more then likely changing and therefore you are getting an error because extract1 no long exists. There does seem to be a way that you could put a scheduled task in the CTT script to check the health of the dropped troops (DroppedGroupBlue) i believe is the table holding the dropped troops names and you would need to go after this since an unlimited number of troop groups can be picked up and dropped off. This makes it difficult to know the name and you would need the name to trigger the smoke. secondly you would probably want to kick off the messages and smoke markers in the CTTS since your schedule task and all the information about the troops are there. you would also need to deal with units that were completely gone and those that were already brought home.

At this point you are a little beyond my skills since i am not a Lua coder give me powershell or vbscript and i am your guy but i have not learned all the caller in lua. Right now i am not available to look at modifying the ctts script for this purpose as i do not have access to test it but maybe in a few weeks. Grimes, speed, ranger79 and many others are extremely at doing this kind of stuff but they may want contact the original author before modifying his code. It appears Angel is the last author of this script.

 

love the idea it is just going to take a few lines of code to get there.

 

76th Falcon

MSI Creator X299 - INTEL i9 - 10900X 3.7 GHZ - 32 GB Corsair Dominator DDR4 - EVGA GTX 1080 FTW AC2

Posted

thanks!

 

I supossed tha this was the problem.

 

Exactly, what I want is when a group is at 25% alive, there will be a message saying "hey! Get us out of here!" And mark their position with Orange smoke, and a flare (just in case the mission its at night).

 

I did it for normal units, but with CTTS it is difficult.... beyond my poor skills. CtTS is not even Mist which is easier to understand.

 

I dont know very well the way the CTTS script creates new units, I am lost here... :(. In any case the idea is good really good for assault missions.

 

me squadron made an airmobile assault with 8 UH supported by a flight of A10... so, this script would will be good to alert friendly flights, and Huey Gunners that someone is in trouble, and need support. So double purposes. Marking enemy units and Medevac

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...