ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hasroomfor

This is an old revision of the document!


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 according to the BSP tree. This function cannot be used to check that the object won't spawn outside the map.
functions/hasroomfor.1497607305.txt.gz · Last modified: 2017/06/16 13:01 by korshun