Jump to content

Recommended Posts

Posted

Hello there.

 

I use very much the CTTS transport troops script. The problem is, the extracted troops, when dropped, cannot activate triggers type "unit in the zone". Also, I cannot smoke on the any of them. I read somewhere somehow, that units created outside the Misión editor (and this is what happen when you transport the toops, you remove them and create them again). But I also I think ive read that with a do script, you can solve this.

 

Can anyone help me?

Posted

i think i recall something about the unit name changing when they are dropped ... therefore any triggers you have assigned to that group or unit name will not work... try doing a forum search for something to that effect.

ASUS Tuf Gaming Pro x570 / AMD Ryzen 7 5800X @ 3.8 / XFX Radeon 6900 XT / 64 GB DDR4 3200 

"This was not in the Manual I did not read", cried the Noob" - BMBM, WWIIOL

Posted

I found this, but I could not make it work.

 

 

 

Initialization and Triggers

The most obvious and powerful feature of the mission editor is where you can find the majority uses for the scripting engine.

[edit] Initialization

The initialization script is run as the mission is loading. It is the first scripting engine script to run.

[edit] Trigger Conditions

The condition "LUA PREDICATE" is the only trigger condition that can utilize lua. The condition must "return" a value true or false. The result of the condition and if applicable other conditions will dictate if the trigger action will execute.

IMPORTANT NOTE: Non-lua triggers will only be aware of groups placed in the mission editor. This means that if you dynamically respawn a group with the same group name as before, a trigger "Switched Condition>Group X is Alive> Message" will not execute if the respawned group is alive. This situation requires LUA Predicate to be used and a condition like the following

if Group.getByName('x') then

return true

else

return false

end

 

http://wiki.hoggit.us/view/Scripting_Engine_Introduction

  • Recently Browsing   0 members

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