Author Topic: Non-Rectangular Triggers  (Read 1430 times)

Code: [Select]
polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
Apparently, that line holds the key to making these magical triggers into things besides rectangular cubes. Anyone know how it's done/if it's even possible? Without making multipule triggers, anyway.

I've tried to look into this before, but I couldn't find any documentation.

I think the spawn sphere has one, try looking at a spawn sphere and if it has one see what happens if you give it the spawn sphere's one.

When in doubt, try changing the numbers and seeing what effect they have.

You can do it through the console ([trigger id].polyhedron = " ... ";).

Code: [Select]
polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";

Perhaps the numbers are vertex coordinates, relative to the triggers position.

0.0000000 0.0000000 0.0000000
1.0000000 0.0000000 0.0000000
0.0000000 -1.0000000 0.0000000
0.0000000 0.0000000 1.0000000

Thanks for the advice so far. I was actually posting to see if anyone's actually messed with it before, and already knows what to do. Guess it's time to actually start the experimentation. id.polyhedron = ""; go!

Find someone that owns the TGE to take a look at this.  Don't bother clicking this    link if you don't own it;  you have to be a registered TGE owner.

http://tdn.garagegames.com/wiki/WorldBuilding/MissionEditor/Creating_Triggers

Quote from: TDN
The polyhedron entry consists of a corner point and the 3 vectors which extend from it. While you can change this value to size the trigger, the same can be done by setting the scale of the trigger.

That explains why trigger positioning is based off the corner of the trigger, rather than the middle.  Thanks Ephi.

It seems like triggers can only be rectangular... unless the world editor has been lying to us all along.
« Last Edit: November 14, 2007, 09:47:21 AM by exidyne »

Yes, it appears so.  The World Editor doesn't lie.   :cookieMonster:

Appears so. It can be slanted and everything, but only rectangles can be made. Now, this isn't that bad, I'll just need a way to treat two+ triggers as the 'same', which isn't that hard. Thanks for the advice folks.
Topic locked.