What Im trying to do is make an RTB pref that contains a drop-down list of every projectile datablock in the server, similar to the list in the events gui. The idea is for a user to be able to chose the projectile that he wants a certain weapon(To be disclosed at a future date) to fire. I know that this is possible, Im just not sure how to implement it myself. Normally I'd just look at the source code for the wrench, but I obviously cant access it.
Below is the (untested and incomplete) pile of crap code that I have come up with.
function datablock::onAdd(%db)
{
if(%db.getType == projectileData)
{
list(projectileList)
{
@ "(%db.uiname)" @
Any ideas?