NEED RPG HELP
Moderator: Cheaters
-
- Newcomer
- Posts: 5
- Joined: June 22nd, 2007, 2:29 am
NEED RPG HELP
I need a trigger that makes a model appear when a unit picks up an item, like in Master Crafters with the weapons and things. Please help me out!
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Go to Abilities in Object Editor
Find the ability "Sphere"
Make a new custom ability based off that one. There will be a field called "Art - Target". In here, put the model you would like to attach. Under it, put the attachment points and after that under "Art - Target Attachments" put the number of attachments.
Then, add the new custom ability based off Sphere to your item.
Done. When a unit picks up your item now, it will receive the target attachments you specified without anything else changing.
Find the ability "Sphere"
Make a new custom ability based off that one. There will be a field called "Art - Target". In here, put the model you would like to attach. Under it, put the attachment points and after that under "Art - Target Attachments" put the number of attachments.
Then, add the new custom ability based off Sphere to your item.
Done. When a unit picks up your item now, it will receive the target attachments you specified without anything else changing.
-
- Newcomer
- Posts: 5
- Joined: June 22nd, 2007, 2:29 am
Re: NEED RPG HELP
When i try that the sword (model im trying) sticks to the base of the unit (ground) and the other ones im trying (long sword) dont work at all.....
Re: NEED RPG HELP
Shafter wrote:When i try that the sword (model im trying) sticks to the base of the unit (ground) and the other ones im trying (long sword) dont work at all.....
Try putting it in the left hand/right hand attachment.
-
- Newcomer
- Posts: 5
- Joined: June 22nd, 2007, 2:29 am
Re: NEED RPG HELP
yea... that worked but now i got another problem... how can i make it so that the unit cant pick up a left handed sword when he has a sheild... or cant weild more then one weapon to each hand... (exp. Has an axe in right hand, and then picks up a right handed sword, then both models will pop up) but i need the trigger that makes the item picked up go to a designated region, like the inventory in Master Crafters... please help me
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
Re: NEED RPG HELP
Do some if then's after adding the items into groups like all shields in thier own little group then if item is picked up and is in group shield if theirs already a item in shields or whatever else can't be equiped at same time on the unit then drop the item or move it to a location w/e. So you'll also have to make a function that registers what item groups the unit already carries.
-
- Newcomer
- Posts: 5
- Joined: June 22nd, 2007, 2:29 am