User Tools

Site Tools


4rpl:commands:setbeamvisible

This is an old revision of the document!


Index
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 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
 
if (GetUnitUpdateCount mod (30) eq (0))
   SetBeamVisible(<-beam <-vis)
   <-vis not ->vis
endif

Index

4rpl/commands/setbeamvisible.1618492523.txt.gz · Last modified: 2021/04/15 09:15 by Karsten75