Author Topic: [Solved] Script help: unit faction.  (Read 2117 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
[Solved] Script help: unit faction.
« on: March 22, 2020, 05:28:09 am »
How to get unit side (player/enemy/civilian) in "newTurnUnit". This script hook has "side" parameter, which means who's moving now, and i want to make check for script to work only in unit's turn, not 3 times per round. Thanks.
Ah, found allready. If someone interested:


 
Code: [Select]
         unit.getFaction faction_variable;
« Last Edit: February 12, 2023, 02:43:12 pm by Meridian »