csbx Posted May 20 Posted May 20 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 ?
IsharaMeradin Posted May 20 Posted May 20 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.
csbx Posted May 21 Author Posted May 21 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 !
Recommended Posts