Code: Select all
If( GetActorZ(0) <= (GetActorZ (hurtsectortag) ) )
{
Spawn("HazardThing",GetActorX(0)
,GetActorY(0)
,GetActorZ(0));
}
Moderator: GZDoom Developers
Code: Select all
If( GetActorZ(0) <= (GetActorZ (hurtsectortag) ) )
{
Spawn("HazardThing",GetActorX(0)
,GetActorY(0)
,GetActorZ(0));
}
Code: Select all
script 23 (int hurtsectortag) //hurtsectortag is the tag of the thing to use to compare Z Positions.
{
If( (GetActorZ(0)) > (GetActorZ(hurtsectortag)) )
{
Print(s:"Moving above the actor");
}
else
If( (GetActorZ(0)) <= (GetActorZ(hurtsectortag)) )
{
Print(s:"Moving Below the actor");
Spawn("HazardThing",GetActorX(0)
,GetActorY(0)
,GetActorZ(0));
}
}