Search found 3 matches

by Maastrictian
Tue Nov 02, 2021 2:14 pm
Forum: Lua Legion
Topic: Deleting a Unit With Lua
Replies: 7
Views: 490

RE: Deleting a Unit With Lua

Sorry for the slow response, but copying your LUA from the scenario you attacked fixed my issue. Thanks so much KnightHawk75.
by Maastrictian
Tue Oct 12, 2021 11:01 am
Forum: Lua Legion
Topic: Deleting a Unit With Lua
Replies: 7
Views: 490

RE: Deleting a Unit With Lua

<r> Thanks for the pointers.<br/>
<br/>
For what its worth <CODE><s>[code]</s>ScenEdit_MsgBox('Test 1' .. unit.name .. unit.guid, 1)<e>[/code]</e></CODE> shows the guid, so I would expect that passing the unit object should work. But I also don't fully understand Lua <E>:D</E><br/>
<br/>
So I ...
by Maastrictian
Mon Oct 11, 2021 2:20 pm
Forum: Lua Legion
Topic: Deleting a Unit With Lua
Replies: 7
Views: 490

Deleting a Unit With Lua

<r> I'm trying to simulate a constant flow of merchant traffic across a strait by using LUA to create a ship with a certain course every hour and then, when the ship reaches the destination port, destroying it. Unfortunately, while creation is working great, I'm running into some error with removing ...

Go to advanced search