Advertisement
mattjeanes

TARDIS Example E2

Jun 24th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. @name TARDIS
  2. @inputs
  3. @outputs Pos:vector Go
  4. @persist Target:entity
  5. runOnTick(1)
  6. runOnChat(1)
  7. LastSaid=owner():lastSaid():explode(" ")
  8. if (chatClk(owner())&LastSaid[1,string]=="!target"){
  9. Target=findPlayerByName(LastSaid[2,string])
  10. hideChat(1)
  11. print("Target set to " + Target:name())
  12. }elseif(chatClk(owner())&LastSaid[1,string]=="!go"){
  13. Go=1
  14. print("TARDIS now moving.")
  15. timer("GoReset",1)
  16. hideChat(1)
  17. }
  18.  
  19. if(clk("GoReset")){Go=0}
  20.  
  21. Pos=Target:pos()+vec(150,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement