This is an old revision of the document!
⇐ Index
SetBeamStart(<-beamUID <-start)
Set a beam's vector starting position in 3D space. For an unattached beam, the starting coordinates are in world space. This means that 0,0,0 is in the lower left of the map. The startY coordinate is the height above the terrain and startX is along the right/left direction of the map and startZ is the forward/back direction. For a beam that is attached to a unit, the start position is relative to the unit. This means that 0,0,0 is at the origin of the unit it is attached to (and will remain there as the unit moves).
once GetUnitPosition(self) ->unitPos #Fire a beam to extends off screen but is at the same height as the unit #We will attach the beam to ourselfs, so that the start point is relative to our unit CreateBeam("orange" 3 1 V3(0 1 0) V3(10000 <-unitPos.Y 10000)) ->beam AttachBeam(<-beam self) endonce SetBeamStart(<-beam V3(0 5 0)) #Move the start of the beam up higher on the unit endif
⇐ Index