Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Rodo on October 06, 2013, 03:46:25 pm
-
Heya fellas. again dealing with a mind cracking puzzle :(
Been trying to get something out of heading/pitch/bank with no luck, and there seems to be nothing out there in fred I can use to pull this off.
You guys have an idea, or ever implemented something like this?
I could divert player attention somehow to a certain point, thus somewhat knowing where he'll be facing but that's just a poor man's solution and likely to fail in some situations.
-
What sort of moving are we talking about here? Something that is already placed within the mission or something that needs to arrive behind the player?
In any case, you can use the get-position-x/y/z sexps + the relative parameters to come up with something that's behind the player.
Try checking this part of the ingame jumping tutorial. (http://www.hard-light.net/wiki/index.php/Tutorial_-_In-Mission_Jumps#warp-effect_and_Relative_Coordinates) It deals with putting something in front of the player, but you could just make things go backwards to make something appear behind the player.
-
Something it's already in mission, no worries though I'll check what you linked. Had no clue the get-position sexps could get you the relative coords of the object.
Cool stuff, I've gotta try it out now.
edit: Works like charm, thanks Axem my fredwizzard.