decal.placeAtRaycast

Section: Decals

What it does

decal.placeAtRaycast takes preset, ox, oy, oz, dx, dy, dz and opts. opts is optional.

Signature

decal.placeAtRaycast(preset, ox, oy, oz, dx, dy, dz, opts?)

Arguments

  • preset
  • ox
  • oy
  • oz
  • dx
  • dy
  • dz
  • optsoptional

Example · generated

function start() {  decal.placeAtRaycast('default', 1, 1, 1, 0, 2, 0);}

decal.placeAtRaycast is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

8 members in decal