ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hasroomfor

HasRoomFor

bool HasRoomFor(str actorname, fixed x, fixed y, fixed z)

Description

Returns true if the actor of the specified type can fit if occupying the specified point.

This function works by attempting to spawn an actor at the specified position, and immediately removing it if successful.

ZDoom creates random empty spaces outside the map, which are infinite extensions of boundary sectors according to the BSP tree. This function cannot be used to check that the object won't spawn outside the map.
functions/hasroomfor.txt · Last modified: 2017/06/16 13:20 by korshun