Change Scout sight dynamically

krisztiantobias

Chieftain
Joined
Feb 15, 2025
Messages
7
Hi there! I'm new with civ6 mods, but not with programming (10y+ cpp developer). In civ7 they introduced new scout actions like lookout and search. I wanted to implement that in civ6, but after 6 hours of trying I'm stuck. My goal is to use a button to increase the sight for 1 turn, then reduce it to the original value. What I tried so far:

DB update, but it did not work. (I'm guessing that this is only possible before the game)
DB.Query("UPDATE Units SET BaseSightRange = 10 WHERE PromotionClass = 'PROMOTION_CLASS_RECON' AND Domain = 'DOMAIN_LAND'");

Unit or UnitManager, but I did not found any sight related stuff:
https://sukritact.github.io/Civilization-VI-Modding-Knowledge-Base/Unit

Using the watchtower mod: https://steamcommunity.com/sharedfiles/filedetails/?id=1897241626. This would require infinite build charges, and deleting the improvement before the next turn, but I could not found any help.
 
Back
Top Bottom