Placement Conditions
Last updated
Last updated
With Placement Conditions
, you can create any logic required to control where and how a buildable can be placed. For example, you might want to prevent a buildable from being placed if it overlaps with the environment. You can add and combine multiple placement conditions to customize the placement behavior for your buildables.
To create your own placement condition, subclass the UBF_BuildableCondition
class and override the CanPlace
function. This function returns a boolean: if true
, the buildable can be placed; if false
, it cannot be placed.
CanPlace()
:
Create your conditional logic here. Returns a boolean - true will pass the condition, false will fail it.