Search found 3 matches

by AVerhoeven
Fri Jun 12, 2020 9:02 pm
Forum: Panzer Corps 2 Scenario Design
Topic: LUA scripting
Replies: 9
Views: 1121

Re: LUA scripting

Thank for the info great news
by AVerhoeven
Fri Jun 12, 2020 1:32 pm
Forum: Panzer Corps 2 Scenario Design
Topic: LUA scripting
Replies: 9
Views: 1121

Re: LUA scripting

Hi Kerensky, I am trying to add heros through lua into my scenario. I got it all working but the vital step of adding the hero through lua code. I tried your code snippet here, but it does not work for me. Any chance you could give us the lines to do so, please? I am looking for something like this,...
by AVerhoeven
Fri Jun 12, 2020 1:28 pm
Forum: Panzer Corps 2 Scenario Design
Topic: need LUA help spawning units
Replies: 1
Views: 422

Re: need LUA help spawning units

Hi Netscape, Here the code to add a unit to the game: -- Create the unit -- 1. Create and execute purchase action, use unit type, transport type and overstrength as parameters local create_action = world:MakePurchaseAction(owner, "Grenadier", "", 0) create_action.auxiliary = false -- spawn core unit...

Go to advanced search