Page 1 of 1

How to destroy all houses of defeated player

PostPosted: 22 Apr 2017, 23:34
by petrmenzel
Hi, I am looking for how to make script to destroy all houses of defeated player. Any idea? Thx you for help.

I am starting with this so I do not understand how to specific that I want to destroy building of the player.

U have found this and this. But I cannot get it to the work.
  Code:
OnPlayerDefeated
Actions.HouseDestroy

Thx you very much

Re: How to destroy all houses of defeated player

PostPosted: 23 Apr 2017, 06:52
by Krom
Show us your current code

Re: How to destroy all houses of defeated player

PostPosted: 23 Apr 2017, 09:40
by RandomLyrics
pseudocode:
procedure OnPlayerDefeat(player) begin
_________ array:= States.PlayerAllHouses(player)
_________ for i:= 0 to array.Length do begin
____________ Actions.HouseDestroy(array[i])
_________ end;
end;

thats should work :>

Re: How to destroy all houses of defeated player

PostPosted: 03 Sep 2017, 18:34
by petrmenzel
I have done it my way :-) but thx