Ship group spawn (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series



Message


Alejo1968 -> Ship group spawn (3/28/2016 4:05:33 AM)

Hi,
I created an event to make 3 ships teleport to a certain area. The problem is they spawn not as a group (respecting their initial formation) but spread along the area. How can I make them spawn as a group/formation?
Thx




Gizzmoe -> RE: Ship group spawn (3/28/2016 9:45:12 AM)

I played around with Teleport for the first time thanks to your post, very nice feature. Works great for teleporting a group, it keeps its formation, speed and heading, but as you said, three single teleported ships don't keep the initial formation. I, as a lua noob, would use three single AddUnit commands instead of Teleport. But maybe there's a better solution...




ComDev -> RE: Ship group spawn (3/28/2016 10:40:11 AM)

Savegame? [;)]

Instructions?

Code?

etc...




Gizzmoe -> RE: Ship group spawn (3/28/2016 12:19:04 PM)

quote:

ORIGINAL: emsoy

Savegame? [;)]

Instructions?


I am not allowed to post links yet.

To clarify, lets say you place four single ungrouped ships in a box formation and then teleport all four of them with a single teleport command, each ship will be randomly placed inside the teleport area, they will be no longer in their initial box formation. If you put those four ships into a single group they keep the formation. It bet this all is by design and intended and I'm ok with that, but it would be nice if that random placement of objects within the teleport area would be optional.




Gizzmoe -> RE: Ship group spawn (3/28/2016 1:13:36 PM)

Ok, I found a way to post links, here's the scenario:
bit.ly/1ZGake0




Alejo1968 -> RE: Ship group spawn (3/28/2016 2:07:10 PM)

I saw yor file, your 4 ships also do not spawn in formation but spread along the area. Same thing that happens to me.
Is there any document which explains lua so as to use the addship script?




Gizzmoe -> RE: Ship group spawn (3/28/2016 2:20:01 PM)

quote:

ORIGINAL: Abbeville_01
Is there any document which explains lua so as to use the addship script?


This document says it's better to use AddUnit, you find this command and the others here:
bit.ly/1MMIaqh




mikmykWS -> RE: Ship group spawn (3/28/2016 3:04:41 PM)

Add import might be best




Gizzmoe -> RE: Ship group spawn (3/28/2016 3:11:28 PM)

Mike, I don't get what you mean by that, please explain :)




kritter -> RE: Ship group spawn (3/28/2016 4:38:16 PM)

I have used this feature in the past. It works as long as you select the group in the teleport window and not the individual units.




Gizzmoe -> RE: Ship group spawn (3/28/2016 4:43:35 PM)

^ That is right, but in the described case the ships aren't supposed to be part of a group.




Alejo1968 -> RE: Ship group spawn (3/28/2016 4:56:24 PM)


quote:

ORIGINAL: kritter

I have used this feature in the past. It works as long as you select the group in the teleport window and not the individual units.


I did that, but they still spread out. Will try using the lua script that mike recommends. Which is absolutely new ground for me.





Gizzmoe -> RE: Ship group spawn (3/28/2016 5:16:32 PM)

quote:

I did that, but they still spread out.


They don't spread out when you group them and teleport the group entry and not the single ships of the group. Also try it with the latest Command version.

quote:

Will try using the lua script that mike recommends. Which is absolutely new ground for
me.


Here is an an example, unfortunately the f-ing forum software doesn't let me post it as text.

That adds a Burke-class DDG (You find the ID in the DB) to the Blue side, names it Test and puts it in the New York bay area.



[image]local://upfiles/17879/75DCF2ECD9FE4CC88A78A039B307DFE1.jpg[/image]




Rudd -> RE: Ship group spawn (3/28/2016 5:33:19 PM)

You two are all over the place.
quote:

^ That is right, but in the described case the ships aren't supposed to be part of a group.

The 'Ship group spawn' thread isn't talking about groups? What?

quote:

Add import might be best

I believe Mike is talking about.
ScenEdit_ImportInst (side, filename)






Gizzmoe -> RE: Ship group spawn (3/28/2016 5:43:57 PM)

quote:

The 'Ship group spawn' thread isn't talking about groups? What?


It is about a group of ungrouped ships and a group of grouped ships and the two different results you get when teleporting them ;)

quote:

I believe Mike is talking about.
ScenEdit_ImportInst (side, filename)[/link]


Oh, ok!




Alejo1968 -> RE: Ship group spawn (3/28/2016 6:08:27 PM)

Thank you Gizzmoe




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.921875