insert_brain
Chieftain
- Joined
- Jun 14, 2014
- Messages
- 8
Hello everyone,
I am a newcomer to the modding panorama, and I am currently trying to create an air recon unit. As of now, I have added the unit in game (the xml stuff) and I added a special action (e.g. air recon) modifying the UnitPanel.lua file. When clicked, the action will trigger a function which will highlight the area in which it is possible to launch an air recon. What I am not sure is how exactly to hook a custom function (to reveal a portion of the map near the selected tile) when a tile is actually selected. I would look into how air strikes/bombardment (or any ranged attack in general) scripts are implemented, but I can't seem to find the files I need. Thanks to whoever will help.
I am a newcomer to the modding panorama, and I am currently trying to create an air recon unit. As of now, I have added the unit in game (the xml stuff) and I added a special action (e.g. air recon) modifying the UnitPanel.lua file. When clicked, the action will trigger a function which will highlight the area in which it is possible to launch an air recon. What I am not sure is how exactly to hook a custom function (to reveal a portion of the map near the selected tile) when a tile is actually selected. I would look into how air strikes/bombardment (or any ranged attack in general) scripts are implemented, but I can't seem to find the files I need. Thanks to whoever will help.