User Tools

Site Tools


4rpl:commands:isbeam

Index
Beams

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

Index

4rpl/commands/isbeam.txt · Last modified: 2021/04/15 12:35 by Karsten75