This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
@RileyStarcraft: Go
THANK YOU! Sheees, go go for loops (actually gogo writing, have to learn Galaxy). I feel so stupid, 5 years programming and I fail at a thing like this.....
Can someone please tell me why I keep obtaining only one column of eggs instead of a polygon 10x12. Thank you.
//-------------------------------------------------------------------------------------------------- // Trigger: InitEggField //-------------------------------------------------------------------------------------------------- bool gt_InitEggField_Func (bool testConds, bool runActions) { // Variable Declarations fixed lv_i; fixed lv_j; // Variable Initialization lv_i = 34.5; lv_j = 220.5; // Actions if (!runActions) { return true; } while ((lv_i < 46.5)) { while ((lv_j < 230.5)) { libNtve_gf_CreateUnitsWithDefaultFacing(1, "Egg", 0, 1, Point(lv_i, lv_j)); lv_j = (lv_j + 1.0); } lv_i = (lv_i + 1.0); } return true; } //-------------------------------------------------------------------------------------------------- void gt_InitEggField_Init () { gt_InitEggField = TriggerCreate("gt_InitEggField_Func"); TriggerAddEventMapInit(gt_InitEggField); }
@RileyStarcraft: Go
THANK YOU! Sheees, go go for loops (actually gogo writing, have to learn Galaxy). I feel so stupid, 5 years programming and I fail at a thing like this.....
Can someone please tell me why I keep obtaining only one column of eggs instead of a polygon 10x12. Thank you.