This is an old revision of the document!
SetBeamForceLocalEnd(<-beamUID <-forceLocalEnd)
When set to true on a beam, the beam will use local coordinates for the end point when attached to a unit. Normally, the end point of a beam is always in global coordinates even when the beam is attached to a unit. If you want the end point to also be relative to the unit, then SetBeamForceLocalEnd to true.
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 4 0 1 0 10000 <-unitPos.Y 10000) ->beam AttachBeam(<-beam self) endonce SetBeamForceLocalEnd(<-beam true) SetBeamEnd(<-beam 10 1 10)
⇐ Index