I have another question.

CapeMan1008 · 509

CapeMan1008

  • Newbie
  • *
    • Posts: 4
I have another question.
on: June 22, 2021, 07:39:41 pm
How do I make it so that the player can't build my CMod unit at the start of the map, and then unlocks it later on in the map? Also, I am planning to use it in some other maps were I will want it to be unlocked at the start.



Karsten75

  • Hero Member
  • *****
    • Posts: 7224
Re: I have another question.
Reply #1 on: June 23, 2021, 10:34:24 am
There are some maps that do this, techniques vary.

These kind of discussions are best conducted in the Discord. Most of the folks that are knowledgeable hangs out there. :)

'If you want to live a happy life, tie it to a goal, not to people or things.'

Albert Einstein
(1879-1955)


CapeMan1008

  • Newbie
  • *
    • Posts: 4
Re: I have another question.
Reply #2 on: June 23, 2021, 05:22:33 pm
I think I might have one idea, where I have it locked by default and just run a script that unlocks it at the beginning of the other maps where I want it unlocked.

EDIT: I'm actually going to use a different strategy because I just found out about the SetUnitCanBuild command.
« Last Edit: June 23, 2021, 09:06:53 pm by CapeMan1008 »