[Oxyd] set_cease_fire and already aimed player
Posted: Sat Mar 26, 2016 5:58 pm
Already aimed entity in ennemy force still get aimed automaticaly if set to ally.
Setup :
When set_cease_fire is called, every entity (including players,turret does it great now) of the first force targeting any entities of the second force should reset their target
Setup :
- Each player do to set their respective force :
Code: Select all
/c game.local_player.force = game.create_force(game.local_player.name)
- Then a player do to set another player as enemy :
Code: Select all
/c game.local_player.force.set_cease_fire("",false)
- Then it aim an shoot with space to the enemy player without kiling
- Then a player do to set another player as ally :
Code: Select all
/c game.local_player.force.set_cease_fire("",true)
- Then press space : the player still shoot on the ally player
When set_cease_fire is called, every entity (including players,turret does it great now) of the first force targeting any entities of the second force should reset their target