Because they weren't exported. You can do a check for bONMOBJ though. A_CheckFloor, but know this, actors one is standing upon are also counted as the 'floor' sometime, I think. Easiest way to tell is if they have no Z velocity.Cherepoc wrote:How can I check if an actor is standing on floor or on another actor? I did not dig deep into the sources, but I see there are P_CheckOnmobj function and MF2_ONMOBJ flag, but can't find such things in zscript files.
No. But there is the HIT<TARGET/MASTER/TRACER> flags. I suggest just using HITTRACER though because 'target' keeps track of the owner (explosion damage comes to mind.)Cherepoc wrote:Also, I want to make projectiles transform into non-projectiles if they hit anything they cannot damage (floors, walls, solid decorations, actors of same species as the shooter). Is there a function I can override and do the checks?
Code: Select all
TNT1 A 0
{
if (tracer)
{
}
else
{
//Didn't hit anything.
}
}