~~NOTOC~~ <=[[4rpl:start| Index]] \\ <=[[4rpl:start#beams| Beams]] ====== SetBeamVisible ====== SetBeamVisible(<-beamUID <-visible) ===== Description ===== Set a beam to be visible or invisible. Invisible beams are not destroyed they are simply not visible. ===== Examples ===== 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 ourselves, so that the start point is relative to our unit 3 ->brightness 4 ->width CreateBeam("orange" <-brightness <-width) ->beam AttachBeam(<-beam self "") SetBeamStart(<-beam V3(0 0 0)) SetBeamEnd(<-beam V3(10000 0 10000)) endonce if (GetUnitUpdateCount mod (30) eq (0)) SetBeamVisible(<-beam <-vis) <-vis not ->vis endif <=[[4rpl:start| Index]]