[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Change the side of an object when a goal triggers?
Author Change the side of an object when a goal triggers?
Martin


Joined: Feb 28, 2002
Posts: 76
From: Scotland
Posted: 2002-09-04 17:10   
Hi.

I'm designing a mission where I would like
to change the side of a number of units
when a goal triggers, so that they
switch to being enemies.

Can this be done?

Martin.


  View Profile of Martin   Email Martin      Edit/Delete This Post   Reply with quote
Admiral Wilhelm von Tegethoff


Joined: May 23, 2002
Posts: 360
From: Styria (as often as possible), Austria
Posted: 2002-09-04 18:48   
Ask Bill Nichols. I think he did that in Sicillian Wedding in the Gaeta attack
_________________

S.M.S. Viribus Unitis k.u.k. Kriegsmarine


  View Profile of Admiral Wilhelm von Tegethoff   ICQ status       Edit/Delete This Post   Reply with quote
Bill Nichols


Joined: Feb 27, 2002
Posts: 664
Posted: 2002-09-04 20:04   
Quote:

On 2002-09-04 18:48, Admiral Wilhelm von Tegethoff wrote:
Ask Bill Nichols. I think he did that in Sicillian Wedding in the Gaeta attack




No, I don't know how to do that. I don't think it can be done.


  View Profile of Bill Nichols      Edit/Delete This Post   Reply with quote
Odin


Joined: May 24, 2002
Posts: 669
From: Scotland / Canada
Posted: 2002-09-04 20:37   
Me neither. I once tinkered around with that as well, but couldn't find a solution that worked well for me. Sorry.
_________________
"...Aww, don't worry about that sub, it's just a Russkie..." BOOM!!


  View Profile of Odin   Email Odin   ICQ status         Edit/Delete This Post   Reply with quote
Tusipex


Joined: Mar 13, 2002
Posts: 78
From: Poland
Posted: 2002-09-05 01:26   
Hi
Martin: You can use remove attached object in some case. Then place same unit , but different side.


  View Profile of Tusipex      Edit/Delete This Post   Reply with quote
Baron Max


Joined: Feb 28, 2002
Posts: 209
Posted: 2002-09-05 05:38   
Quote:
Tusipex wrote:
You can use remove attached object in some case. Then place same unit , but different side.



Yeah, I used that in a "hostage" mission -- the captive sub was a "bad guy" at first, but changed to a 688(i) "good guy". The problem I encountered was making the first sub disappear. As I recall, only the KILL goal worked.

I finally got it to work, but it wasn't easy and damned if I know how it would work with several vessels ...might be a real -spank me!-!

Baron Max


  View Profile of Baron Max      Edit/Delete This Post   Reply with quote
Mcarm


Joined: Jul 22, 2002
Posts: 591
From: Cork, Ireland...Somtimes!
Posted: 2002-09-05 07:57   
Here's one way.

1) Set up an automatic goal to change sides. This goal is triggered by whatever, and when true is the trigger to change sides.

2) build all the objects you wish to change sides. Add an attached goal to each, use a destination goal with a radius of say 1000nms. This is to be sure your vessels are aleays within the goal radius.

3) Use the attached goal to 'remove attached object' when the change side goal is triggered.

4) Add all the new, changed side, objects in to one or more dynamic groups. Again, create these objects when the change side goal is triggered.

5) so now, you have a goal which triggers the change of side, goals attached to the original objects which remove them, and a goal which creates your new objects when the change side goal is triggered.
_________________
Cheers

Mcarm



  View Profile of Mcarm   Email Mcarm      Edit/Delete This Post   Reply with quote
Tusipex


Joined: Mar 13, 2002
Posts: 78
From: Poland
Posted: 2002-09-05 08:20   
One problem: Where to place new object?
You don't know where the object will be at the moment.
_________________
Tusipex


  View Profile of Tusipex      Edit/Delete This Post   Reply with quote
Mcarm


Joined: Jul 22, 2002
Posts: 591
From: Cork, Ireland...Somtimes!
Posted: 2002-09-05 08:35   
Tusipex

You hit the nail on the head! In order for the procedure I expalined to work, you must know exactly where the object is at the time of the change-over and generate the new object in proximity.

You could do this in one of two eays. Firstly by experiment, if the objects follow pre assigned routed at a pre defined speed then you can mess around until you get the right spot. Alternativly you can use approact or destination goals at very short radius to trigger the change.

I agree, either way, its not a very elegant solution
_________________
Cheers

Mcarm



  View Profile of Mcarm   Email Mcarm      Edit/Delete This Post   Reply with quote
Kennebec


Joined: Feb 28, 2002
Posts: 1259
From: Virginia - USA
Posted: 2002-09-07 02:45   
Brought this up from the dead. Sorry, I have been away for a while. The link below is a simple mission in which there is a 50/50 split of a kilo. The kilo stays friendly or turns into an enemy.

I support Mcarm in this one. It is a work around but can be done. Easiest if you pre-plan the mission and designate where it will happen. Of course I have found that if I don’t pre-plan the missions they turn into nightmares to create.

There is one thing that wasn’t mentioned above. If you remove and create, the auto TMA will continue to track a contact that has actually changed and is no longer there. But that just adds to the ‘Fog of War’

But here is a mission for you if you want to actually view the goals:

http://efox.freeservers.com/Kilo%20Split.zip

[ This Message was edited by: Kennebec on 2002-09-07 02:46 ]


  View Profile of Kennebec   Goto the website of Kennebec      Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.043356 seconds.