BCU main page Bridge Commander Universe
...welcome to the new world.
 
 FAQFAQ  RanksRanks  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Staff SiteStaff Site    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

One more simple scripting question from annoying old me...

 
Post new topic   Reply to topic    Bridge Commander Universe Forum Index -> BC Scripting
View previous topic :: View next topic  
Author Message

Mouse140

Cadet 4th Class
Cadet 4th Class


Age: 26
Zodiac: Pisces
Joined: 12 Jun 2006
Posts: 16

Offline

 

 



Reply with quote

Post Posted: 09-01-2006 08:26 PM Post subject: One more simple scripting question from annoying old me...

I do apologise for sounding really noobish with my few posts, but every time i try to understand various coding i just endup cross-eyed and more confused then when i started... heh...
I'm trying to more or less replicate the phased-hull of that temporal warship fron the second year of hell voyager episode... I was using the phase-cloak mod as a base but apparently that only turns off ship to ship collisions. I'm guessing what i want to do is really simple and i'm just a idiot. That said... can someone tell me what i would need to add to this to turn off collisions with weapons (all types) and maybe perhaps planets and other items i'm not currently thinking of?



App.DamageableObject_Cast(pObject).SetCollisionsOn(0)



Thanks in advance.
You can call me a idiot if you wish.
heh

Back to top
View user's profile Send private message

Mouse140

Cadet 4th Class
Cadet 4th Class


Age: 26
Zodiac: Pisces
Joined: 12 Jun 2006
Posts: 16

Offline

 

 



Reply with quote

Post Posted: 09-02-2006 04:12 AM Post subject:

NOONE can reply? i know it's gotta be a simple command.... i just have no idea were to find it....

Back to top
View user's profile Send private message

MLeo

Fleet Admiral
Fleet Admiral


Age: 22
Zodiac: Aquarius
Joined: 26 Nov 2002
Posts: 11439
Location: Netherlands
Offline

 

 



Reply with quote

Post Posted: 09-02-2006 11:46 AM Post subject:

It's possible, it's been a while since I did that.

Here is an example using the player ship.
Code:
pPlayer = App.Game_GetCurrentPlayer()
pSet = pPlayer.GetContainingSet()
pProx = pSet.GetProximityManager()
pProx.RemoveObject(pPlayer)


And here is the effect.



_________________

How to beat the Black Screen Of Death and Script problems Also handles Console/Screen/Error report/dump.
BC Technical FAQ [Last updated 26/12/2005]
"Trust me, I'm a con artist" - Moist von Lipwig, "Going Postal, Discworld"

Back to top
View user's profile Send private message Send e-mail MSN Messenger

Mouse140

Cadet 4th Class
Cadet 4th Class


Age: 26
Zodiac: Pisces
Joined: 12 Jun 2006
Posts: 16

Offline

 

 



Reply with quote

Post Posted: 09-02-2006 02:33 PM Post subject:

THANK YOU! thats exactly what i was trying to do. and it appears from the coding i wasn't even anywere close to right! I managed how to put it back in too right on my first try but then it would only make sense that 'add' would go with 'remove'. And don't worry i'm just messing with scripts right now, i have no intention of releasing anything. This particular one wouldn't make for very interesting gameplay anyway.... what with everything passing through you....
If i can figure out how maybe i'll make it randomly 'phase' in and out of regular space so the enemy has something to hit... assuming i can figure out how.... heh....

Back to top
View user's profile Send private message

hellewellth

DRONE 2
DRONE 2


Age: 27
Zodiac: Capricorn
Joined: 16 Mar 2005
Posts: 48

Offline

 

 



Reply with quote

Post Posted: 09-02-2006 06:23 PM Post subject:

That would be cool to add to the phase-cloak mod so weapons could not hit the ship too.

Back to top
View user's profile Send private message

Mouse140

Cadet 4th Class
Cadet 4th Class


Age: 26
Zodiac: Pisces
Joined: 12 Jun 2006
Posts: 16

Offline

 

 



Reply with quote

Post Posted: 09-03-2006 03:03 AM Post subject:

Thats what this does. It dosen't really make play intresting though, everything just passes through you. Weapons., ships, planets, stars, cheese...

Back to top
View user's profile Send private message

MLeo

Fleet Admiral
Fleet Admiral


Age: 22
Zodiac: Aquarius
Joined: 26 Nov 2002
Posts: 11439
Location: Netherlands
Offline

 

 



Reply with quote

Post Posted: 09-03-2006 09:33 AM Post subject:

That and planets and suns really don't look interresting and are rather desorienting when you pass through them.


_________________

How to beat the Black Screen Of Death and Script problems Also handles Console/Screen/Error report/dump.
BC Technical FAQ [Last updated 26/12/2005]
"Trust me, I'm a con artist" - Moist von Lipwig, "Going Postal, Discworld"

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic

All times are GMT

Page 1 of 1
   Bridge Commander Universe Forum Index -> BC Scripting
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
Bridge Commander Universe is a Nightsoft company. All rights reserved.