Abesh Posted August 30, 2011 Share Posted August 30, 2011 Hiya, I've been thinking about a neat weapon concept but I'm not too sure how to implement it so I thought I'd ask here. Essentially I want to make a gun that teleports you to where the shot lands. It's really not too tough to do, and I have it partially implemented already - if the shot (or the explosion) hits an actor, you can grab their reference and do a player.moveto to shift em over there. That's all well and good, but it doesn't allow you to move to an arbitrary place (can't just shoot a wall and teleport there). Probably what I'll have to do is have the shot create a reference point with placeatme or something and then teleport to that reference. Problem is, I have no idea how to do that in practice. Anyone have any experience with creating and grabbing reference IDs on the fly? Link to comment Share on other sites More sharing options...
Glenstorm Posted August 30, 2011 Share Posted August 30, 2011 (edited) Hiya, I've been thinking about a neat weapon concept but I'm not too sure how to implement it so I thought I'd ask here. Essentially I want to make a gun that teleports you to where the shot lands. It's really not too tough to do, and I have it partially implemented already - if the shot (or the explosion) hits an actor, you can grab their reference and do a player.moveto to shift em over there. That's all well and good, but it doesn't allow you to move to an arbitrary place (can't just shoot a wall and teleport there). Probably what I'll have to do is have the shot create a reference point with placeatme or something and then teleport to that reference. Problem is, I have no idea how to do that in practice. Anyone have any experience with creating and grabbing reference IDs on the fly? There is a mod doing the exact same thing for Fallout 3: Teleportation Gun. Might want to consider reverse-engineering that... and getting permission from the guy to use his code if you do so Edited August 30, 2011 by Glenstorm Link to comment Share on other sites More sharing options...
Recommended Posts