isStatic

isStatic([number entity]) → boolean static
Returns whether the entity entity is static. A static entity cannot move or be moved.

Returns whether or not the entity entity is static. A static entity cannot move or be moved.

This is notably the case for team Turrets.

Example:

if (isStatic(entity)) {
	debug("This entity cannot be moved")
}
if (entity.isStatic) {
	Debug.log("This entity cannot be moved")
}
if entity.isStatic:
	Debug.log("This entity cannot be moved")
Parameters
Return