User Tools

Site Tools


4rpl:commands:isbeam

This is an old revision of the document!


Index

IsBeam

IsBeam(<-beamUID)

Description

Checks to see if beamUID represents a valid beam. If the beam has been destroyed or points to something other than a beam, false is returned.

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
 
print2("Beam Valid: " IsBeam(<-beam))

Index

4rpl/commands/isbeam.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)