Map Database  •  FAQ  •  RSS  •  Register  •  Login

How to destroy all houses of defeated player

Post a reply

Smilies
:arrow: (H) :'( :O :@ (!) :( :idea: :lol: :mad: :mrgreen: :| (?) :P :$ :rolleyes: (6) :D :) :o :? :wink:
View more smilies
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: How to destroy all houses of defeated player

Post by petrmenzel » 03 Sep 2017, 18:34

Re: How to destroy all houses of defeated player

I have done it my way :-) but thx

Post by RandomLyrics » 23 Apr 2017, 09:40

Re: How to destroy all houses of defeated player

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 :>

Post by Krom » 23 Apr 2017, 06:52

Re: How to destroy all houses of defeated player

Show us your current code

Post by petrmenzel » 22 Apr 2017, 23:34

How to destroy all houses of defeated player

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

Top