Aller au contenu

Photo

Horse Dismount by Object?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Zephyrys

Zephyrys
  • Members
  • 19 messages
Hello,

I'm trying to make it so when someone 'uses' a hitching post in my PW, it will dismount them from the horse they're currently riding.  Theoretically, this will also be used to fix instances where a PC gets stuck on a horse and needs to get off.  However, all my attempts to do so have resulted in either nothing happening to my mounted PC or an error in compiling.  This is what I currently have for the script:
#include "x3_inc_horse"

void main()
{
   object oPC=GetLastUsedBy();
   HorseInstantDismount(oPC);
}

Trying to use just plain "HorseDismount" results in the compiler error DECLARATION DOES NOT MATCH PARAMETERS

Any help is appreciated.  Thanks!

Modifié par Zorpheus, 02 octobre 2010 - 07:01 .


#2
GhostOfGod

GhostOfGod
  • Members
  • 863 messages
Hmm. The script you posted works just fine for me. Are you trying to dismount an NWN horse or is it perhaps a CEP one? Have you altered the player properties skins or the default x3_mod_def scripts?

#3
ffbj

ffbj
  • Members
  • 593 messages
The reason you are getting the declaration error is due to the fact that you must add in the oHorse object and define it.

Modifié par ffbj, 02 octobre 2010 - 02:04 .


#4
ffbj

ffbj
  • Members
  • 593 messages
My horse call method:
http://nwvault.ign.c....Detail&id=5921

Modifié par ffbj, 02 octobre 2010 - 02:05 .


#5
Zephyrys

Zephyrys
  • Members
  • 19 messages

GhostOfGod wrote...

Hmm. The script you posted works just fine for me. Are you trying to dismount an NWN horse or is it perhaps a CEP one? Have you altered the player properties skins or the default x3_mod_def scripts?


I'm not sure how to differentiate between the two.  It's just a horse I used the built in NWN mount controls to get onto.  I don't think any alterations to those things have been made.