sm.construction
The Construction api is used for interacting with the shape construction system.
Functions
buildBlock
sm.construction.buildBlock( uuid, position, target )
Server-Only
Builds a block.
Arguments:uuid
[ Uuid ]: The block uuid.position
[ Vec3 ]: The block position. Local position if building on a target, global if building on terrain.target
[ Shape / Joint / Lift / nil ]: The target object to build the block on. Use nil to build on terrain.
validateLocalPosition
sm.construction.validateLocalPosition( uuid, position, normal, target )
Validates whether a block can be built at the target position.
Arguments:uuid
[ Uuid ]: The block uuid.position
[ Vec3 ]: The block position. Local position if building on a target, global if building on terrain.normal
[ Vec3 ]: The normal of the surface to validate placement.target
[ Shape / Joint / Lift / nil ]: The target object to validate on. Use nil to validate on terrain.
- [ bool ]: Whether the position is valid or not.