Game Development Community

Adding props to obj visible in Mission Editor

by Adam Beaumont · in Torque Game Engine · 08/15/2003 (7:32 am) · 0 replies

This might be really obvious to do (I think it must be) but I've missed something somewhere so I thought I'd ask here before writing anymore C++!

I am experimenting and want to add a new kind of trigger which is 'standard trigger' + '1 new property'. I want the new property to be visible in the mission editor so that it can be updated at level design time.

Every instance of this new trigger will need this property so I can't just add it on as a dynamic property each time I add a trigger.

How do I do this ? So far the only thing I can see to do is to derive a new trigger class from the standard trigger class in C++ and add it into the GUI editor etc etc but this seems like its a bit long winded - is there another (better) way of doing this ? Maybe just something in script ?

Any help would be appreciated.

Thanks,

Adam