Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Ship group spawn

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Ship group spawn Page: [1]
Login
Message << Older Topic   Newer Topic >>
Ship group spawn - 3/28/2016 4:05:33 AM   
Alejo1968


Posts: 101
Joined: 10/22/2006
Status: offline
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
Post #: 1
RE: Ship group spawn - 3/28/2016 9:45:12 AM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
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...

(in reply to Alejo1968)
Post #: 2
RE: Ship group spawn - 3/28/2016 10:40:11 AM   
ComDev

 

Posts: 5735
Joined: 5/12/2006
Status: offline
Savegame?

Instructions?

Code?

etc...

_____________________________



Developer "Command: Modern Air/Naval Operations" project!

(in reply to Gizzmoe)
Post #: 3
RE: Ship group spawn - 3/28/2016 12:19:04 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
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.

< Message edited by Gizzmoe -- 3/28/2016 12:34:01 PM >

(in reply to ComDev)
Post #: 4
RE: Ship group spawn - 3/28/2016 1:13:36 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
Ok, I found a way to post links, here's the scenario:
bit.ly/1ZGake0

(in reply to Gizzmoe)
Post #: 5
RE: Ship group spawn - 3/28/2016 2:07:10 PM   
Alejo1968


Posts: 101
Joined: 10/22/2006
Status: offline
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?

(in reply to Gizzmoe)
Post #: 6
RE: Ship group spawn - 3/28/2016 2:20:01 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
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

(in reply to Alejo1968)
Post #: 7
RE: Ship group spawn - 3/28/2016 3:04:41 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Add import might be best

_____________________________


(in reply to Gizzmoe)
Post #: 8
RE: Ship group spawn - 3/28/2016 3:11:28 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
Mike, I don't get what you mean by that, please explain :)

(in reply to mikmykWS)
Post #: 9
RE: Ship group spawn - 3/28/2016 4:38:16 PM   
kritter

 

Posts: 345
Joined: 12/3/2007
Status: offline
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.

(in reply to Gizzmoe)
Post #: 10
RE: Ship group spawn - 3/28/2016 4:43:35 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
^ That is right, but in the described case the ships aren't supposed to be part of a group.

(in reply to kritter)
Post #: 11
RE: Ship group spawn - 3/28/2016 4:56:24 PM   
Alejo1968


Posts: 101
Joined: 10/22/2006
Status: offline

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.


(in reply to kritter)
Post #: 12
RE: Ship group spawn - 3/28/2016 5:16:32 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
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.






Attachment (1)

< Message edited by Gizzmoe -- 3/28/2016 5:17:36 PM >

(in reply to Alejo1968)
Post #: 13
RE: Ship group spawn - 3/28/2016 5:33:19 PM   
Rudd

 

Posts: 1501
Joined: 7/10/2013
Status: offline
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)




_____________________________


(in reply to Gizzmoe)
Post #: 14
RE: Ship group spawn - 3/28/2016 5:43:57 PM   
Gizzmoe


Posts: 155
Joined: 8/24/2005
From: Germany
Status: offline
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!

(in reply to Rudd)
Post #: 15
RE: Ship group spawn - 3/28/2016 6:08:27 PM   
Alejo1968


Posts: 101
Joined: 10/22/2006
Status: offline
Thank you Gizzmoe

(in reply to Rudd)
Post #: 16
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Ship group spawn Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.781