Game Development Community

Swords

by ronald mcintyre · in Torque 3D Beginner · 02/17/2014 (8:43 am) · 4 replies

Sorry if this in wrong place, my first post...

I just purchased the Medieval Characters 4 Art Pack...

It only came with 1 sword instead of the 2 it advertises...

I have been able to use the Characters that came with the pack, but I am unable to equip the sword...

I would appreciate any help...

About the author

Recent Threads


#1
02/17/2014 (10:38 am)
Hi Ronald,

I can't speak to that particular pack, but the first thing to do for a successful mount is to create a shapeImage of the object. You can't mount items directly, you have to first make a pseudo-object called a shapeImage of it, then mount the result.

The ShapeBaseImageData docs are here:

docs.garagegames.com/torque-3d/official/content/documentation/Scripting/Advanced...

There is an example on that page of what a shapeBaseImageData block looks like, and you will find other examples in your script base if you search for that.

Once you have the image available, mounting it on a character is simple:

%player.mountImage(somethingImage,1);

%player.unmountImage(1);

where somethingImage is the name of your shapebaseImage datablock, and 1 = the mountpoint embedded in the character mesh.

Most models have "0" or "1" as a mountpoint for the right hand--again I can't speak to your particular model as I don't have it. If your model doesn't have mountpoints, you can add them in a modeling program or with the ShapeEditor inside Torque; else you wind up with a mount at the basepoint of the figure.
#2
02/17/2014 (1:50 pm)
Thank You for responding... I will research the link you provided... The Sword that comes with the pack is only 4 files... sword.3DS sword.dts sword.max sword.png I see that the other weapons in-game have many more files than that, but I will see what I can do... Thanks Again...
#3
02/17/2014 (10:15 pm)
WOO-HOO ! ! ! I got him to hold the Sword... He holds it straight out like he's holding a gun, and it fires bullets, But he IS holding it... LOL Well that's enough for one day... Thanks again for your help...
#4
02/17/2014 (11:58 pm)
Now that is no way to celebrate a newly won sword.

Here you go:


Now that is called celebrating a newly won accomplishment! :o)