[SOLVED]Placing Units in Scenario via WML
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
[SOLVED]Placing Units in Scenario via WML
Hey guys, I'm sure this questions has been made before however I can't find it in the forum.
I wanted to know the best way to place units onto the map at the beginning of my scenario. The idea is that there will be a finite amount of units the player can
control. If someone could provide the best way to do this or point me to a topic which answers this question I'd appreciate it very much!
I wanted to know the best way to place units onto the map at the beginning of my scenario. The idea is that there will be a finite amount of units the player can
control. If someone could provide the best way to do this or point me to a topic which answers this question I'd appreciate it very much!
Last edited by dracut on September 29th, 2018, 4:39 pm, edited 1 time in total.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Placing Units in Scenario via WML
You'd need [unit].
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Placing Units in Scenario via WML
Awesome, for the mandatory "type" key, am I referencing a type as specified in a core .cfg file? I don't want to define my own type here.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Placing Units in Scenario via WML
You'd be using the
id
field(example).99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Placing Units in Scenario via WML
Thank you! Appreciate the timely answer!