AtomicTorch Studio Forums

VoidExpanse => Help section => Topic started by: ninekorn on May 01, 2019, 04:58:11 pm

Title: static NPC?
Post by: ninekorn on May 01, 2019, 04:58:11 pm
Hi ai_enabled or/and Lurler,

Again, the basic interior station MOD V1.0 is almost completed. But I wanted to know if there is something that i can do to have a static NPC. Meaning - a NPC that doesn't move.

I have thought of a couple of things:



The reason is I want the interior station MOD V1.1 to incorporate destructible stations. I can put a NPC that has an empty hull but individually attach the Stations colliders to it to make it stay EXACTLY where the station is and BAM if the npc is destroyed by hitting its colliders that are positioned EXACTLY where the station walls are, the station is also destroyed... That is how i have thought of making them destructible.

Any ideas of a better way or static NPC function?

Oh and i have got no clue if 30++ colliders on an NPC will affect the game performance. It might hit it hard.

nine
Title: Re: static NPC?
Post by: ai_enabled on May 02, 2019, 06:16:18 am
Hi!
Hmm, aren't turrets are static ships, technically? So they're not moving. Please look on the turret hull definition probably it's defined there. Or maybe via JS code when a turret is spawned.

Regards!
Title: Re: static NPC?
Post by: ninekorn on May 02, 2019, 03:41:38 pm
Wow... why didn't I think of that??? This is a game changed for the station mod in many ways. thank you ai_enabled for pointing me in the right direction.
Title: Re: static NPC?
Post by: ai_enabled on May 02, 2019, 04:04:09 pm
Enjoy! :-)