@name Local Clip

runOnTick(1)

if(first())
{
    holoCreate(1)
    holoScale(1,vec(1,1,1))
    holoModel(1,"models/buildables/teleporter.mdl")
    
    
    holoClipEnabled(1,1)
  #  (#)entity sets to clip 20 Left/Right 
    holoClip(1,entity():pos(),(entity():pos()+ vec(60,0,0)),1)
}
##ENTITY## (Were Box Spawns To Clip)
holoPos(1,entity():pos() + vec(0,0,0))


holoAng(1,entity():angles())

#Tips: 
#You can only clip a hologram once at a time.
#When you execute holoClip, your assigning a plane in the world is the last argument is set to 1
#Imagine a flat plane 
#holoClip(Index, Plane center pos, Plane Directional Vector, Global?)
#first we give it the index of the hologram we want to clip
#then we give it the center of the imaginary clipping plane
#next we give it a direction that the place will cut in
#finally, we ask if the plane is local to the chip or global to the world
#holoClipEnabled(Index, 1/0) will turn on clipping if true, or stop clipping if false
#When you use holoClip, remember that you only have to assign it once, the clipping plane will remain there until the chip is reloaded,delted, or you change it again

