Difference between revisions of "Weapons"
From Divinity Engine Wiki
Line 8: | Line 8: | ||
* '''Dummy_Attachment''': used to attach the weapon to the equipment locators of a character. | * '''Dummy_Attachment''': used to attach the weapon to the equipment locators of a character. | ||
* '''Dummy_FX Dummy_FX1 Dummy_FX2''' : used to add FX to a weapon.<br /> | * '''Dummy_FX Dummy_FX1 Dummy_FX2''' : used to add FX to a weapon.<br /> | ||
+ | <br /> | ||
+ | To create and export weapons we are using 3ds Max. <br /> | ||
+ | Create a new layer for each weapon. Everything that will be in the layer will be exported into one granny file. <br /> | ||
<br /> | <br /> | ||
Here an example of dummy set-up in 3ds Max: <br /> | Here an example of dummy set-up in 3ds Max: <br /> | ||
Line 15: | Line 18: | ||
[[File:Weapon2.jpeg|none]] | [[File:Weapon2.jpeg|none]] | ||
<br /> | <br /> | ||
+ | |||
+ | After you do the correct set-up you need to export your weapon to a granny file and set it up in the editor.<br /> |
Revision as of 17:36, 15 September 2017
Weapons
Before we get into the weapon details I want to clarify very briefly how Weapons work in our engine and tackle some basic troubleshooting. This will hopefully shed some light on the reasons why things are done the way they are done.
The weapons setup consists of:
- Dummy_<weaponname>: is the root of the weapon and used when a weapon is dropped in the world. It is also the root when a weapon is animated and uses a rig, such as a bow or crossbow.
- Dummy_Attachment: used to attach the weapon to the equipment locators of a character.
- Dummy_FX Dummy_FX1 Dummy_FX2 : used to add FX to a weapon.
To create and export weapons we are using 3ds Max.
Create a new layer for each weapon. Everything that will be in the layer will be exported into one granny file.
Here an example of dummy set-up in 3ds Max:
Here is how your hierarchy should look:
After you do the correct set-up you need to export your weapon to a granny file and set it up in the editor.