Jump to content


Photo

Hero mounts but disappears

mount extrapublicbone ini

Best Answer Lusta, 20 February 2014 - 08:37 AM

Hello

 

Is your code something like this?

 
Unit that can be joined by others:
 
Behavior = TransportContain ModuleTag_TransportContainTag
   ObjectStatusOfContained = UNSELECTABLE CAN_ATTACK
   PassengerFilter = NONE +HOBBIT  
   Slots = 1
   ShowPips = No
   AllowEnemiesInside = No
   AllowNeutralInside = Yes
   AllowAlliesInside  = Yes
   DamagePercentToUnits = 0%
   TypeOneForWeaponSet = HOBBIT
   PassengerBonePrefix = PassengerBone:PASSENGERBONE     KindOf:HERO
   EjectPassengersOnDeath = Yes
   ConditionForEntry = ModelConditionState: MOUNTED
    EnterSound = GandalfVoiceJoinHobbit
End
 
Unit That joins:
 
It needs to have a
    ModelConditionState = PASSENGER
and it's animation and you have to add a WeaponSet
   Conditions = CONTAINED
 
And for it to work rigth 
    KindOf = WORKING_PASSENGER 
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 20 February 2014 - 12:05 AM

Hello everybody,

I added a new bone to a model, assigned a name to it and exported it correctly to its *_skl.w3d file.

I want this new bone to be taken by a hero when he mounts on the model in the game, but it doesn't work...

Hero mounts effectively on the model, but then he disappears without showing on the other model, although I set my new bone as ExtraPublicBone.

Missed something?


Edited by _mclovin, 20 February 2014 - 12:10 AM.


#2 Lusta

Lusta
  • Members
  • 98 posts
  • Location:Hungary

Posted 20 February 2014 - 08:37 AM   Best Answer

Hello

 

Is your code something like this?

 
Unit that can be joined by others:
 
Behavior = TransportContain ModuleTag_TransportContainTag
   ObjectStatusOfContained = UNSELECTABLE CAN_ATTACK
   PassengerFilter = NONE +HOBBIT  
   Slots = 1
   ShowPips = No
   AllowEnemiesInside = No
   AllowNeutralInside = Yes
   AllowAlliesInside  = Yes
   DamagePercentToUnits = 0%
   TypeOneForWeaponSet = HOBBIT
   PassengerBonePrefix = PassengerBone:PASSENGERBONE     KindOf:HERO
   EjectPassengersOnDeath = Yes
   ConditionForEntry = ModelConditionState: MOUNTED
    EnterSound = GandalfVoiceJoinHobbit
End
 
Unit That joins:
 
It needs to have a
    ModelConditionState = PASSENGER
and it's animation and you have to add a WeaponSet
   Conditions = CONTAINED
 
And for it to work rigth 
    KindOf = WORKING_PASSENGER 

(Lusta means Lazy)

my mod beta is linked here


#3 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 20 February 2014 - 11:27 AM

Thank you, I missed "ConditionForEntry", but with MOUNTED, as you suggested, the hero doesn't mount anymore.

I had to change it to CONTAINED to work properly, but you brought me to the solution...thanks again!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users