[SOLVED]Placing Units in Scenario via WML

The place to post your WML questions and answers.

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.
Post Reply
dracut
Posts: 7
Joined: September 29th, 2018, 4:06 pm

[SOLVED]Placing Units in Scenario via WML

Post by dracut »

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! :)
Last edited by dracut on September 29th, 2018, 4:39 pm, edited 1 time in total.
User avatar
Pentarctagon
Project Manager
Posts: 5496
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Placing Units in Scenario via WML

Post by Pentarctagon »

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
dracut
Posts: 7
Joined: September 29th, 2018, 4:06 pm

Re: Placing Units in Scenario via WML

Post by dracut »

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.
User avatar
Pentarctagon
Project Manager
Posts: 5496
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Placing Units in Scenario via WML

Post by Pentarctagon »

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
dracut
Posts: 7
Joined: September 29th, 2018, 4:06 pm

Re: Placing Units in Scenario via WML

Post by dracut »

Thank you! Appreciate the timely answer! :D
Post Reply