HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Calling a model file with custom script?

07-23-2005, 07:41 AM#1
cacophony
I want to create a spell where the Hero throws their currently equipped weapon at an enemy, dealing damage. However, the weapon has the capability to change throughout the course of the map and there's no single model file I can use as the projectile while looking realistic. Is there a way to call a local variable for a model file so that the particular model of that weapon will be thrown at the enemy when the ability is cast? I'm not really superb at JASS editing, so if it's too complicated then I won't bother. Thanks in advance.
07-23-2005, 01:53 PM#2
iNfraNe
you cant change models with jass. you can however create the weapon of the unit quite easily trough mdl editing. Ask at the model section.
07-23-2005, 04:20 PM#3
cacophony
Quote:
Originally Posted by toot
you cant change models with jass. you can however create the weapon of the unit quite easily trough mdl editing. Ask at the model section.


Well, I already have the separate model for the weapons as .mdx files, so that part isn't the problem. What I want to do is essentially call a special effect projectile for the specific weapon the character has equipped.

If he is holding a sword at the time he casts the ability, then he throws that sword. If he is holding a dagger, then he throws that dagger, etc.