Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. @name PortalTest_4
  2. @inputs E1:entity E2:entity B1 B2
  3. @outputs Door1 Door2
  4. @persist
  5. @trigger
  6.  
  7.  
  8. if((changed(B1) & B1==1) ){
  9. lgCreate(1,E1:toWorld(vec(0,-30,10)),E1:toWorld(ang(-90,90,180)))
  10. lgCreate(2,E2:toWorld(vec(0,50,50)),E2:toWorld(ang(-90,0,180)))
  11.  
  12. #[holoCreate(1,entity():toWorld(vec(0,0,50)))
  13. holoCreate(2,entity():toWorld(vec(0,300,50)))]#
  14.  
  15.  
  16. lgScale(1,vec(1,1,5))
  17. lgScale(2,vec(1,1,1))
  18.  
  19. lgShape(1,"box")
  20. lgShape(2,"box")
  21.  
  22. lgLink(1,2)
  23. lgLink(2,1)
  24.  
  25. #Portal1:portalShape("circle")
  26. #Portal2:portalShape("circle")
  27.  
  28.  
  29.  
  30. lgTeleport(1,1)
  31. lgTeleport(2,1)
  32. }
  33.  
  34.  
  35. if(clk("Close")) {
  36. lgRemove(1)
  37. lgRemove(2)
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement