Lua question

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

asuser
Sergeant Major - SdKfz 234/2 8Rad
Sergeant Major - SdKfz 234/2 8Rad
Posts: 628
Joined: Tue May 28, 2013 8:48 pm

Re: Lua question

Post by asuser »

I tried spawning a plane with a skin and an insignia. The skin works, the insignia don't. The error message "insignia is only readable" appears. What does that mean? Has it not yet been implemented functionally?
peterw
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 154
Joined: Fri Apr 25, 2014 7:08 am

Re: Lua question

Post by peterw »

I tried it a bit different, but without success too:
In “normal” wave script I assigned a Landing Craft instead of a truck. You see then the Landing Craft but without fuel.
Or with other words I had to place all spawned units at the coast. In this way the units can move to the land...

May be with the Pacific DLC there will be an improvement.
My Italian Panzer Corps campaign Italia Victor!:
http://www.streitmacht.com/downloads.php?view=detail&df_id=53
asuser
Sergeant Major - SdKfz 234/2 8Rad
Sergeant Major - SdKfz 234/2 8Rad
Posts: 628
Joined: Tue May 28, 2013 8:48 pm

Re: Lua question

Post by asuser »

I experimented with sound effects for the game...

Is it possible to bring out a spoken message with sound via LUA command, i.e. to play a sound file in addition to a message box?

What is the right command for that and how to put the sound file into the game directory?
asuser
Sergeant Major - SdKfz 234/2 8Rad
Sergeant Major - SdKfz 234/2 8Rad
Posts: 628
Joined: Tue May 28, 2013 8:48 pm

Re: Lua question

Post by asuser »

In the editor you can set the starting orientation for units, for example east, west, etc.
Is there also a corresponding LUA command for spawned units?
Post Reply

Return to “Panzer Corps 2 Scenario Design”