Remove point in array, continued

Status
Not open for further replies.
I got this trigger to clean up points when a stage is completed.
The second to last action in the trigger below gives me an error.
Since I have run into this problem before, I looked through my maps and found custom script for removing points in an array.
The last action in this trigger is the action that works in the other map. I just copied it into this trigger to see if I were doing it right.

What am I missing?

  • Stage Clean Up
    • Events
    • Conditions
    • Actions
      • For each (Integer INTEGER_005) from 1 to 100, do (Actions)
        • Loop - Actions
          • Custom script: call RemoveLocation (udg_Game_Cast_Points[bj_forLoopINTEGER_005Index])
          • Custom script: call RemoveLocation (udg_pAttack_Destination[bj_forLoopAIndex])
 
bj_forLoopINTEGER_005Index --> udg_INTEGER_005

Since you do not iterate with bj_forLoopAIndex, there is no reason to address it. Else post the errors.

Yop the map saved fine this time. Thanks!
Though. Can you explain why I need to use bj_forLoopAIndex in one trigger but not the other?
It just seem to me that I am doing the exact same thing in both triggers.
 
Status
Not open for further replies.
Back
Top