Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: DamagingProjectileAPI getElapsed() question  (Read 1502 times)

rogerbacon

  • Commander
  • ***
  • Posts: 142
    • View Profile
DamagingProjectileAPI getElapsed() question
« on: January 02, 2016, 03:08:53 PM »

The method getElapsed() says "Time the projectile has been alive.". Does anyone know if this is in seconds or milliseconds or something else?
Logged

Snrasha

  • Admiral
  • *****
  • Posts: 705
    • View Profile
Re: DamagingProjectileAPI getElapsed() question
« Reply #1 on: January 02, 2016, 03:17:43 PM »

Stop create subject in mass, you have a subject for this:

Misc modding questions that are too minor to warrant their own thread


Sorry, just create subject spam for each question and you have a subject for that...  this is very a big flood...

Spoiler
Essentially, any modders willing to be on call for their services should slam a post here with their specialties and what they're working on. Since we don't really have user-friendly user pages, keeping a post here updated for activity could help other modders find you for help or to recruit you for a project. A portfolio of screenshots or mods you've worked on would also be a good idea.

Please only one post per user- you can always edit it! No real post size limit, just keep large blocks of text or images in spoilers!

If you have a question about this thread itself, please message me personally instead of spamming the page.
[close]


And for your question, you can always test for know, so sorry , no idea.
« Last Edit: January 02, 2016, 03:19:32 PM by Snrasha »
Logged
I am pretty bad on english. So, sorry in advance.

Gladiator Society
Add battle options on Com Relay/ Framework for modders for add their own bounty.

Sanguinary Autonomist Defectors A fan-mod of Shadowyard.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: DamagingProjectileAPI getElapsed() question
« Reply #2 on: January 02, 2016, 04:09:00 PM »

The method getElapsed() says "Time the projectile has been alive.". Does anyone know if this is in seconds or milliseconds or something else?

Time is pretty much always in seconds, unless it's something like campaign days, but the method name would make it clear in that case. I don't think there's any case where a time is returned is a float and is in milliseconds.
Logged

rogerbacon

  • Commander
  • ***
  • Posts: 142
    • View Profile
Re: DamagingProjectileAPI getElapsed() question
« Reply #3 on: January 02, 2016, 04:11:32 PM »

The method getElapsed() says "Time the projectile has been alive.". Does anyone know if this is in seconds or milliseconds or something else?

Time is pretty much always in seconds, unless it's something like campaign days, but the method name would make it clear in that case. I don't think there's any case where a time is returned is a float and is in milliseconds.

Thank you. I'll put future questions in the mass question thread.
Logged