Bridge Commander Central

BC Forums => BC Modding => Topic started by: Maxloef on May 09, 2010, 08:22:47 AM

Title: background MODELS?
Post by: Maxloef on May 09, 2010, 08:22:47 AM
is it possible to add background MODELS, to a system?

like adding a inverted square with textures on it (like ST Legacy/Armada II) that allign to create a background of nebula and everything?

but adding it in the background so you cant collide with it??

if so would be nice if someone could help me out
Title: Re: background MODELS?
Post by: Villain on May 09, 2010, 09:17:11 AM
I imagine it'd just be a case of making it something like a ship but a long, long distance away, and big... Would it not? Maybe flagged as a station even?  :idk:
Title: Re: background MODELS?
Post by: teleguy on May 09, 2010, 12:26:16 PM

but adding it in the background so you cant collide with it??


I think you could either use
Code: [Select]
pProx = pSet.GetProximityManager()
pSet.SetProximityManagerActive(1)
pProx.RemoveObject(pObject)
or
Code: [Select]
App.DamageableObject_Cast(pObject).SetCollisionsOn(0)
Title: Re: background MODELS?
Post by: Kirk on May 09, 2010, 02:47:28 PM
DS9FX does this.
Title: Re: background MODELS?
Post by: Maxloef on May 09, 2010, 04:18:57 PM

but adding it in the background so you cant collide with it??


I think you could either use
Code: [Select]
pProx = pSet.GetProximityManager()
pSet.SetProximityManagerActive(1)
pProx.RemoveObject(pObject)
or
Code: [Select]
App.DamageableObject_Cast(pObject).SetCollisionsOn(0)

Could you give an example? like how ud place it in a system
Title: Re: background MODELS?
Post by: teleguy on May 09, 2010, 05:24:15 PM
Code: [Select]
kLocation = App.TGPoint3()
kLocation.SetXYZ(X, Y, Z)
pShip = loadspacehelper.CreateShip("Name1", pSet, "Name2", "kLocation")
App.DamageableObject_Cast(pShip).SetCollisionsOn(0)
pShip.SetStatic(1)
pShip.SetTargetable(0)

Name1 is the name of the ship in the ship script (in Bridge Commander\scripts\ships)
Name2 is an arbitrary name you assign to the ship
and
X,Y and Z are x,y and z coordinates
Title: Re: background MODELS?
Post by: Maxloef on May 09, 2010, 05:30:24 PM
thanx gonna try that =]