Jump to content

[IVA] Internal Space Script - Saving InternalSeat and Internal CameraSwitch to Config


Recommended Posts

I copied over the Internal Space script from one of the Squad IVAs into the game object for the IVA I am making. Though, every time I write to CFG, it adds a default internal seat and internal camera switch.

Is there a way for it to output to the CFG the internal seats and camera switches in my IVA, or does that need to be manually added each time the CFG is re-written by the script?

here is the output. In red is what it writes each time. In green is what I want it to write:

	[B][COLOR="#008000"]MODULE
{
name = InternalSeat
seatTransformName = Bunk1
allowCrewHelmet = false
}
MODULE
{
name = InternalSeat
seatTransformName = Locker1
allowCrewHelmet = false
}[/COLOR][/B]

INTERNAL
{
name = CxA_NapHabV1_Internal
[COLOR="#FF0000"][B]MODULE
{
name = InternalSeat
seatTransformName = CenterSeat
portraitCameraName = CockpitCam
allowCrewHelmet = false
}
MODULE
{
name = InternalCameraSwitch
colliderTransformName = focusCanopy
cameraTransformName = CanopyEyeTransform
}[/B][/COLOR]
PROP
{
name = CxA_BunkBed
position = 0.6000001,-0.025,0.55
rotation = 3.090862E-08,0.7071068,0.7071068,-3.090862E-08
scale = 0.9999998,-1,1
}
PROP
{
name = CxA_BunkBed
position = 0.6,-0.025,-0.5500001
rotation = 3.090862E-08,0.7071068,0.7071068,-3.090862E-08
scale = 0.9999998,1,1
}
PROP
{
name = CxA_BunkBed
position = -0.6000001,-0.025,-0.55
rotation = 0.7071068,-3.090862E-08,-3.090862E-08,-0.7071068
scale = 1,-1,1
}
}

Javascript is disabled. View full album
Link to comment
Share on other sites

Bump.

Anyone? I dont mind manually re-adding the seats and camera switches to the cfg, but if there is a way for it to be included in the output of the script it would be good to know.

Link to comment
Share on other sites

If you write your own InternalSeat / InternalCameraSwitch definitions to the CFG manually first, and then rewrite the CFG subsequently using the Internal Space component whenever you add/alter props, might that help?

(It seemed to work for me)

Link to comment
Share on other sites

I had the definitions included in the CFG prior to running the script, but they were removed and replaced by those two definitions in red each time I've saved to the config.

I'll try making a fresh CFG and trying it again tonight.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...