Hammerwatch Forum

Custom mapping and Mods => Editor Discussion => Topic started by: khrusayder on September 14, 2014, 11:14:24 PM

Title: How to End a Campaing
Post by: khrusayder on September 14, 2014, 11:14:24 PM
hello guys, im created a tiny campaing with the editor but i dont know how to trigger the end of this one.

I talking about arrive to the exit and show the stadistics/score/time screen.

My apologies for my bad english and thanks in advance.
Title: Re: How to End a Campaing
Post by: Myran on September 15, 2014, 12:24:34 AM
The end screen shows when you trigger the "GameEnd" script node.
Title: Re: How to End a Campaing
Post by: khrusayder on September 15, 2014, 02:11:32 AM
Yeah, but when put on the map that script nothing happend. Maybe need be linked with another trigger but i dont know what is. I'll appreciate the help anyway friend :)

Can anyone tell me what i need to do step-by-step please? thank very much in advance. 
Title: Re: How to End a Campaing
Post by: MrJanCraft on September 25, 2014, 06:44:44 PM
I can help you You go to you last place where game will end:

Like a path or Bridge or something else.

You only need a RectangleShape,Game End,PlaySound and a Area Trigger

I attached a Screen for you.

If you want to end the game with a lose you type in the end Game Script e.lose

if you want that the guys win when the activate the trigger you write e.win :)

Hope i can helped you