Spawning structures

Order of Battle is a series of operational WW2 games starting with the Pacific War and then on to Europe!

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Spawning structures

Post by Erik2 »

This coastal gun was scripted to arrive at the hex below when that location was captured.
But since the location was occupied, it appeared at an adjacent vacant hex.
This works fine for normal air/land/naval units.
But structures like forts, coastal guns, bunkers and airstrips (maybe more) should only arrive at the exact location.

Edit: Maybe we could have a check box for 'exact location only', then it could be used for whatever unit you spawned.
Attachments
structure.jpg
structure.jpg (29.78 KiB) Viewed 1009 times
LadyLex
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 47
Joined: Wed Dec 07, 2016 12:57 pm

Re: Spawning structures

Post by LadyLex »

Just getting into working with the editor, but have a question on this. Is it possible to check the status of the location prior to spawning?

The script would first check to see if the location were occupied. If yes, then don't spawn. If no, then spawn.

By the way; I've been looking through your custom scenarios (as well as those in the base game) to learn about the scripting. I haven't tried anything myself yet, but am planning a little "playing" this weekend. I'm impressed with your scenarios. Lots of work went into them. Thank you!
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9633
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Spawning structures

Post by Erik2 »

Yes, checking if the location is occupied before spawning is a work-around.
I added this condition to the event in the original post.

Thanks.
I welcome more users to the editor.
LadyLex
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 47
Joined: Wed Dec 07, 2016 12:57 pm

Re: Spawning structures

Post by LadyLex »

Awesome. I've been looking at doing a scenario around The Slot, having Australian cost watchers pop up here and there. Checking to see if there are any Japanese units around before spawning is a good idea. These guys were very lightly armed and typically alone (or with only a few native guides). Spawning near a Japanese unit would be disastrous for the cost watcher.

Now to see if I can actually get my scenario from my head (and paper) to the screen!
Post Reply

Return to “Order of Battle Series”