Jump to content

Recommended Posts

Posted

My humble spawn mod does a basic check to see if the marker we're spawning the creature to will likely be in water at the position calculated--or rather it checks 150 units below the marker for water.

Currently I'm using:
bool isInWater = PO3_SKSEFunctions.isrefInWater(tempmarker)

Is using PO3's resource the only way to do this or a similar check ? My real question: Though I'm grateful to have PO3 as an option, I'd like to reduce dependencies if possible. Is it possible here ?

Posted

The only native check is with the function IsSwimming.  And as you can guess, it will only catch if the loaded actor is swimming.  Thus, it would not catch shallow water that can be walked through. Nor can it determine if non-actor objects are in water.  Therefore, the PO3 function that you are using is most likely the best option.

Posted
17 hours ago, IsharaMeradin said:

The only native check is with the function IsSwimming.  And as you can guess, it will only catch if the loaded actor is swimming.  Thus, it would not catch shallow water that can be walked through. Nor can it determine if non-actor objects are in water.  Therefore, the PO3 function that you are using is most likely the best option.

Thank you for letting me know !

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...