AddSnow — Dennispedia

AddSnow

Add a snowball to a shape. Only used by data/script/snowball.lua for the pile of snowballs in the campaign hub.

This does not create a new shape, but instead modifies the existing shape, including potentially changing its dimensions to fit the accomodate the new voxels. This may end up changing the position of textures.

This function exists in all environments, but will do nothing if called from a non-privileged script.

This function was added in 0.9.6 (8498817).

This function is not officially documented.

Arguments

  1. Shape (number): Index of shape entity to add snowball to. Game will crash if not a valid shape entity.
  2. Vec (table): World space position of snowball
  3. number: Snowball radius in meters, clamped to range 0.1 to 0.3

Return values

  1. boolean: Always false. Purpose unknown.