View previous topic :: View next topic |
|
Author |
Message |
Mouse140
Cadet 4th Class

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

|
|
|

|
|
|
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 |
|
 |
Mouse140
Cadet 4th Class

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

|
|
|

|
|
|
NOONE can reply? i know it's gotta be a simple command.... i just have no idea were to find it....
|
|
|
Back to top |
|
 |
MLeo
Fleet Admiral

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

|
|
|

|
|
|
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 |
|
 |
Mouse140
Cadet 4th Class

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

|
|
|

|
|
|
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 |
|
 |
hellewellth
DRONE 2

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

|
|
|

|
|
|
That would be cool to add to the phase-cloak mod so weapons could not hit the ship too.
|
|
|
Back to top |
|
 |
Mouse140
Cadet 4th Class

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

|
|
|

|
|
|
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 |
|
 |
MLeo
Fleet Admiral

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

|
|
|
|
Back to top |
|
 |
|