https://wiki.baloogancampaign.com/index.php?title=ScenEdit_SetUnit&feed=atom&action=history
ScenEdit SetUnit - Revision history
2024-03-28T21:20:28Z
Revision history for this page on the wiki
MediaWiki 1.27.0
https://wiki.baloogancampaign.com/index.php?title=ScenEdit_SetUnit&diff=4942&oldid=prev
Baloogan at 23:51, 12 December 2014
2014-12-12T23:51:01Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 23:51, 12 December 2014</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l18" >Line 18:</td>
<td colspan="2" class="diff-lineno">Line 18:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>--Can change any combination of settings. Check [[ScenEdit_AddUnit]] for a full listing</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>--Can change any combination of settings. Check [[ScenEdit_AddUnit]] for a full listing</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>ScenEdit_SetUnit({side="United States", name="USS Test", heading=0, HoldPosition=1, HoldFire=1,Proficiency="<del class="diffchange diffchange-inline">Ace</del>", Autodetectable="yes"})</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>ScenEdit_SetUnit({side="United States", name="USS Test", heading=0, HoldPosition=1, HoldFire=1,Proficiency="<ins class="diffchange diffchange-inline">4</ins>", Autodetectable="yes"})</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td></tr>
</table>
Baloogan
https://wiki.baloogancampaign.com/index.php?title=ScenEdit_SetUnit&diff=4798&oldid=prev
Baloogan at 17:46, 22 November 2014
2014-11-22T17:46:50Z
<p></p>
<p><b>New page</b></p><div><syntaxhighlight lang="lua"><br />
--basic function:<br />
ScenEdit_SetUnit({side="United States", name="USS Test", lat = 5})<br />
<br />
<br />
--ScenEdit_SetUnit is a function that takes something to identify a unit by; either a side/name or a guid and modifies it based on what you pass as arguments<br />
<br />
--If you want to set the latitude of a unit, do so!<br />
ScenEdit_SetUnit({side="United States", name="USS Test", lat = 5})<br />
--If you want to set the lat lon<br />
ScenEdit_SetUnit({side="United States", name="USS Test", lat = 5, lon = "N50.20.10"})<br />
<br />
--Lets say you have the guid of a unit in f15.guid<br />
ScenEdit_SetUnit({guid=f15.guid, lat = 5, lon = "N50.20.10"}) --This works just as well as giving both a side and a name<br />
<br />
--Changing the name of a unit<br />
ScenEdit_SetUnit({side="United States", name="USS Test", newname="USS Barack Obama"})<br />
<br />
--Can change any combination of settings. Check [[ScenEdit_AddUnit]] for a full listing<br />
ScenEdit_SetUnit({side="United States", name="USS Test", heading=0, HoldPosition=1, HoldFire=1,Proficiency="Ace", Autodetectable="yes"})<br />
<br />
</syntaxhighlight></div>
Baloogan