[FIXED] Raid on Kismayo - Trigger not working?
Posted: Sun Jan 19, 2020 1:32 pm
Hello!
Great work on CMO - I'm especially loving the new satellite maps.
However, on Raid on Kismayo, when I move the marines to the safehouse... nothing happens. Attached is my save file.
When there were enemies in the area, I got a warning, but after destroying them, nothing.
Cheers!
Edit:
Messing around in the editor, if I add an 'endscenario' action to the trigger, it works. So the trigger isn't broken, but the action is.
Edit #2:
I've sort-of worked what seems to be affecting things.
In the action US_MarinesAtSite, there is the command:
local theUnit = ScenEdit_UnitX()
The marines are supposed to be assigned to theUnit for the action to work, but instead another unit in the area becomes theUnit. If I move all my other units out of the trigger area, the marines (correctly) become theUnit.
Then there is a second problem:
The action has the following line:
theMessage = GenerateRadioMessageBody(theMessage,theReconTeam.name
the theReconTeam.name is a nil value.
If delete 'theReconTeam.name', it works.
So, to 'fix' this action, I must:
- Move all units that are not the marines out of the trigger area
- Delete the text 'theReconTeam.name' from the action
Then it works ok.
I hope that helps.
Great work on CMO - I'm especially loving the new satellite maps.
However, on Raid on Kismayo, when I move the marines to the safehouse... nothing happens. Attached is my save file.
When there were enemies in the area, I got a warning, but after destroying them, nothing.
Cheers!
Edit:
Messing around in the editor, if I add an 'endscenario' action to the trigger, it works. So the trigger isn't broken, but the action is.
Edit #2:
I've sort-of worked what seems to be affecting things.
In the action US_MarinesAtSite, there is the command:
local theUnit = ScenEdit_UnitX()
The marines are supposed to be assigned to theUnit for the action to work, but instead another unit in the area becomes theUnit. If I move all my other units out of the trigger area, the marines (correctly) become theUnit.
Then there is a second problem:
The action has the following line:
theMessage = GenerateRadioMessageBody(theMessage,theReconTeam.name
the theReconTeam.name is a nil value.
If delete 'theReconTeam.name', it works.
So, to 'fix' this action, I must:
- Move all units that are not the marines out of the trigger area
- Delete the text 'theReconTeam.name' from the action
Then it works ok.
I hope that helps.