Multi-Slot Weapon System
by joint heir · in Game Design and Creative Issues · 06/10/2005 (11:45 am) · 4 replies
Hi everybody. I'm trying to script a multi-slot weapon system. Below is an example of how I want the logic to work:
Example: (On pick up) Weapon checks for object located in slot 0. If object is in slot 0, check for object in slot 1. If no object is found mount weapon in slot 1.
Please help me with scripting this! I've got a short time to do this & i've gone over weapon.cs in various examples time after time again! Need Some Help Soon!!! Thanx!
Example: (On pick up) Weapon checks for object located in slot 0. If object is in slot 0, check for object in slot 1. If no object is found mount weapon in slot 1.
Please help me with scripting this! I've got a short time to do this & i've gone over weapon.cs in various examples time after time again! Need Some Help Soon!!! Thanx!
About the author
#2
My idea is that this could also be used to "show" the weapon mounted somewhere on the body of the character as if it were in a holster, or strapped to the players back.
06/10/2005 (2:05 pm)
Yes. say there would be a rifle in the default slot (mount0) and a knife/pistol etc. in slot 1 (mount1)My idea is that this could also be used to "show" the weapon mounted somewhere on the body of the character as if it were in a holster, or strapped to the players back.
#3
06/13/2005 (4:36 am)
Your name spells Torque wrong... Just thought I'd let you know.
#4
or tribes2.
I think both got this to mount the energy module and some other stuff.
Rename the data .unf and scripts.unf to *.zip and unzip it .
..hmm and i think theres a mod for legends that uses shoulder mounted weapons and such stuff.
10/31/2005 (2:34 am)
Maybe u take a look into the scripts of legends (http://www.legendsthegame.net/)or tribes2.
I think both got this to mount the energy module and some other stuff.
Rename the data .unf and scripts.unf to *.zip and unzip it .
..hmm and i think theres a mod for legends that uses shoulder mounted weapons and such stuff.
Torque 3D Owner Matthew Langley
Torque