User Tools

Site Tools


cw4:cmod:docs:e560de12-b7fe-4a15-afe3-9b76ea1fe5f2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cw4:cmod:docs:e560de12-b7fe-4a15-afe3-9b76ea1fe5f2 [2021/03/20 10:41] – [For Map Makers] UberWaffecw4:cmod:docs:e560de12-b7fe-4a15-afe3-9b76ea1fe5f2 [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 31: Line 31:
 The script for this warehouse unit makes use of global variables. See the script for more details. The script for this warehouse unit makes use of global variables. See the script for more details.
  
-In the case that you make unit updates after already having placed down warehouses or "CityWarehouseFiller" units, then run the below script to have the production properly recalculated on the next game tick.+To avoid lag of multiple units processing each tick, the "CityWarehouseFiller" units only update their production on construction and subtract it again on Destroyed. 
 +This means that if you update unit instances, you can end up with broken production values. 
 +The units have a means to recalculate from scratch for these situations. To trigger this, refer to the console script below. 
 + 
 +In the case that you make unit updates after already having placed down warehouses or "CityWarehouseFiller" units, then run-once the below console script to have the production properly recalculated on the next game tick.
  
 ---- ----
cw4/cmod/docs/e560de12-b7fe-4a15-afe3-9b76ea1fe5f2.1616236877.txt.gz · Last modified: 2025/02/14 14:56 (external edit)