Game Development Community

Seems I can only use UI to make script changes...

by Jason Campbell · in Torque 3D Beginner · 03/15/2014 (10:24 pm) · 2 replies

Hey Everyone,

I've been working real hard to get Steve Acaster's Fake Melee with Raycasts to work. I just wanted to add a knife. Anyway I get no errors and I really think am doing it right but nothing happens. The same happened when I made a custom shotgun weapon. Everything I did in script would not translate to the game. It seems I can't make a datablock unless I create it from the editor. I got the shotgun working but I hate having to create new from existing. Do I now need to edit managedDataBlocks.cs?

Maybe I'm not doing something simple, I don't think I'm a complete noob and the exercises I did in 3DGP-all in One where only in script.

Thanks,
Jason


#1
03/15/2014 (11:42 pm)
When you create a new script outside the engine the engine won't know to load it.

You need to add it to the file datablockExec.cs

Just add exec("./nameofscript.cs");
#2
03/16/2014 (12:27 am)
Thanks Nin, I was missing that one for my knife. Still doesn't work right but I'm closer.