Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Colonol Dekker on August 24, 2007, 11:18:43 am

Title: Thought of this, is it possible?
Post by: Colonol Dekker on August 24, 2007, 11:18:43 am
Using the
get-x-y-z from object,

Is it possible to use an arithmatic operator to add 200 to the z for instance to grab the co-ordanites of the player and make in effect add 200 to his position for use in creating a subspace effect or creating a ship etc....


?


Thanks guys, you are all great and brilliant :)
Title: Re: Thought of this, is it possible?
Post by: Mobius on August 24, 2007, 11:22:16 am
Well, you're giving for sure that the player always points at certain locations(same x, same y, higher z). What if it points to another location but the front? It won't work...Unless you use this feature in a cutscene.
Title: Re: Thought of this, is it possible?
Post by: NGTM-1R on August 24, 2007, 01:11:49 pm
It is possible to determine which the direction the player is pointed, Volition did it for "The Place of Chariots" May not be 100% accurate, but it can be done.
Title: Re: Thought of this, is it possible?
Post by: karajorma on August 24, 2007, 01:40:17 pm
Well, you're giving for sure that the player always points at certain locations(same x, same y, higher z). What if it points to another location but the front? It won't work...Unless you use this feature in a cutscene.

I've often thought we need a "get-object-facing-x" SEXP. It probably wouldn't be too hard to deconstruct the set-object-facing SEXP and find out which values I needed either.

The only thing stopping me is that every time I think of it I keep getting an inkling that there is already a SEXP that does that.
Title: Re: Thought of this, is it possible?
Post by: Mobius on August 24, 2007, 01:53:39 pm
It can be done with Scripting, I don't know. I don't remember SEXPs that fullfill Dekker's requirements for his idea...
Title: Re: Thought of this, is it possible?
Post by: TrashMan on August 24, 2007, 02:47:47 pm
 make a "get-coord-from-player SEXP that gives back coordinates that are X meters in front or behind the player...
Title: Re: Thought of this, is it possible?
Post by: 0rph3u5 on August 24, 2007, 03:14:54 pm
Using the
get-x-y-z from object,

Is it possible to use an arithmatic operator to add 200 to the z for instance to grab the co-ordanites of the player and make in effect add 200 to his position for use in creating a subspace effect or creating a ship etc....?

I've tried something similar for camera movements in cutscene (although the camera continusly appeared trebbeling)... worked fine and it would work fine for your prupose
Title: Re: Thought of this, is it possible?
Post by: Admiral Edivad on August 28, 2007, 01:50:37 pm
I've tried something similar for camera movements in cutscene (although the camera continusly appeared trebbeling)... worked fine and it would work fine for your prupose

I've done the same and it works well. Good when you want to see a dogfight...