Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnStartTouch(trigger)
- -- Get the position of the "point_teleport_spot"-entity we put in our map
- local point = Entities:FindByName( nil, "point_teleport_spot" ):GetAbsOrigin()
- -- Find a spot for the hero around 'point' and teleports to it
- FindClearSpaceForUnit(trigger.activator, point, false)
- -- Stop the hero, so he doesn't move
- trigger.activator:Stop()
- -- Refocus the camera of said player to the position of the teleported hero.
- SendToConsole("dota_camera_center")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement