Jump to content


Photo

Toggle a hero's texture

texture haldir toggle object

Best Answer Irenë Hawnetyne, 17 March 2014 - 10:06 PM

Honestly, I dunno how to do that with code, so I'd import the Haldir model, apply your custom texture, then export it after rebinding to a new model, then just exchange the models in the code. Just my bit there.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Nick0911

Nick0911
  • Members
  • 18 posts

Posted 17 March 2014 - 09:38 PM

I'm trying to make Haldir toggle between his two textures (4 actually). I get the error that 'Texture' is an unknown field in block 'object' on line 29, which doesn't make sense. Here is the problem code:

; --------- With Bow ------------
		DefaultModelConditionState
			Model               = EUHaldir_SKN
			WeaponLaunchBone    = PRIMARY arrow
		End
		
		ModelConditionState = WEAPONSET_TOGGLE_2
			Model   = none
		Texture = euhaldir1.tga euhaldir1ha.tga
		End
	End

Edited by Nick0911, 17 March 2014 - 09:39 PM.


#2 Irenë Hawnetyne

Irenë Hawnetyne

    -

  • Hosted
  • 3,073 posts

Posted 17 March 2014 - 10:06 PM   Best Answer

Honestly, I dunno how to do that with code, so I'd import the Haldir model, apply your custom texture, then export it after rebinding to a new model, then just exchange the models in the code. Just my bit there.


"Everyone's a hero when there's nowhere left to run."

 

Auxiliary Skarn, 2333rd Cohort


#3 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 17 March 2014 - 10:22 PM

Try RandomTexture i believe some units/heroes use this.



#4 Nick0911

Nick0911
  • Members
  • 18 posts

Posted 18 March 2014 - 09:32 PM

 I got it working. Link is a file of my haldir.ini & commandbutton.ini changes; to whom it may concern.

 

https://docs.google....y9oxqvS7S0/edit


Edited by Nick0911, 20 March 2014 - 07:17 PM.






Also tagged with one or more of these keywords: texture, haldir, toggle, object

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users