over 5 years ago - Gomez - Direct link
Originally posted by Sriracha.King01: Need help with scripts for map editor. like, if a unit dies, the game is lost. If this zombie is killed, game is won. If this building is destroyed, game is lost.


Hello!

Check here please! --->> https://steamcommunity.com/sharedfiles/filedetails/?id=1558159867&preview=true

Regards
over 5 years ago - Gomez - Direct link
Originally posted by Sriracha.King01: Thnx Gomez, I didnt read anything about the script I need though. I need the exact script or custom trigger or whatever it's called for if a unit dies, game ends. I think it is along the lines of

IfUnitDies
EndGameLost

I have a "protagonist" for the custom game I'm making, if he does during the mission, the mission needs to end. Anyone know the script?


Hi again,

You first have to give an ID to the "protagonist" for example "Sam". After that you have to make an event and mark GameOver with the ID of Sam.

Regards





Recent They Are Billions Posts

5 days ago - Gomez