Jump to content

Help with creating Reference at projectile impact point


Abesh

Recommended Posts

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

  On 8/30/2011 at 2:47 AM, Abesh said:

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 by Glenstorm
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...