Page 2 of 2
Re: Portal gun?
Posted: Wed Jul 20, 2011 3:23 pm
by Noobasaurus
Fiodis wrote:Noobasaurus wrote:As I was playing Mav's "The Big L" map in campaign, I saw that there might be another way to teleport yourself...
Since it seems when you hit the object you get teleported to it, perhaps you could make all the walls that specific type of object...
Well, I don't know...

It should be pointed out that it's easy to teleport yourself via lua. What Mav does in The Big L is teleport you to an object when you hit it with a specific weapon.
Oh...I see.
Re: Portal gun?
Posted: Wed Jul 20, 2011 3:31 pm
by Fiodis
Noobasaurus wrote:Errrrm...what would be the code for that? I would like to try it...
You check what weapon the target was hit with using GetObjectLastHitWeaponClass (an example of that is in the Geonosis campaign). Then you use GetEntityMatrix to get the target's matrix and teleport your unit to that using SetEntityMatrix.
Re: Portal gun?
Posted: Thu Jul 21, 2011 11:24 am
by Noobasaurus
I got this:
And I see that you need to kill the droid with either the lightsaber or saber throw, but how would you set up GetEntryMatrix and SetEntry Matrix?
Fiodis wrote:Then you use GetEntityMatrix to get the target's matrix and teleport your unit to that using SetEntityMatrix.
Would you just do GetEntryMatrix = "rep_inf_ep3_rifleman" for an example, or am I completely wrong?
I probably am.
