function want

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Ok I have tried many things and I can't find a way of stopping a space object from in code. Anyone have any ideas? Before you put up a function please test it. Many things that you would first think that would work don't. :?
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:Ok I have tried many things and I can't find a way of stopping a space object from in code. Anyone have any ideas? Before you put up a function please test it. Many things that you would first think that would work don't. :?
stoping a space item from?
Image
Image
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

just a dead stop, like you pass in a ship and the function makes it stop moving.
Crying is not a proper retort!
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

can you trick a ship to stop using shpOrderWait ?
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

doesn't stop the player ship.
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:just a dead stop, like you pass in a ship and the function makes it stop moving.

like mega break?
Image
Image
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

if you want the stop to be instant, you could make the object jump to it's current location. not an ideal solution, but it should work, once i made a "Warp Drive", basically a quick activating short range jumpdrive. but it would stop the ship after each jump.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

mmmh... tested, It works, unfortunately objJumpTo has the stargate effect hardcoded every time you jump.

It would be nice if George will change the function from:
objJumpTo obj posVector

to:
objJumpTo obj posVector [effectID]

in order to have customs jump effects and no effect at all if desidered.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

(objMoveTo gsource (objGetPos gsource))

objMoveTo is the same as objJumpTo but without the gate effects (I knew those function docs would come in handy)

thanks Bobby for the hint at the solution :D
Crying is not a proper retort!
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Betelgeuse wrote:(objMoveTo gsource (objGetPos gsource))

objMoveTo is the same as objJumpTo but without the gate effects (I knew those function docs would come in handy)

thanks Bobby for the hint at the solution :D

thanks does. that well help on another topic. :)
Image
Image
Post Reply