Author Topic: player spawning question?  (Read 124 times)

ninekorn

  • Full Member
  • ***
  • Posts: 195
    • View Profile
player spawning question?
« on: April 30, 2019, 10:20:16 pm »
Hi, The station MOD is almost ready for release. The basics and most important are done: interior station models, colliders, unwalkable tiles...

Now I need to setup the spawn points for players to be more distanced to the starting station but cannot seem to find the setting where to modify it.

I would need help on that. I think i know how to spawn turrets already and specify which position i need them.
nine

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1346
    • View Profile
Re: player spawning question?
« Reply #1 on: May 01, 2019, 09:13:18 am »
Hello!

Players spawn location is not done in a clean way in this game...
It's defined by this code (from "data\scripts\lib\SystemsPresets.js"):
Code: [Select]
spawn.SetCoordinates(
                bas_coord.x + 15 * Math.cos(ang),
                bas_coord.y + 15 * Math.sin(ang));

Regards!

ninekorn

  • Full Member
  • ***
  • Posts: 195
    • View Profile
Re: player spawning question?
« Reply #2 on: May 01, 2019, 08:24:16 pm »
That fixed the problem of the initial spawn point! Thank you ai_enabled