Author Topic: cep horses and ponies issue  (Read 333 times)

Legacy_Monsieur T

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +0/-0
cep horses and ponies issue
« on: August 27, 2014, 01:50:37 am »


               

Howdy,


I wonder if anyone could help me with this niggling problem?


I am happy using the 3 horses and 3 ponies from CEP2 and do NOT want to "upgrade" to more recent horsey systems.


But while the mounts work fine for PCs in my module, I have run across an issue when NPCs are involved....


NPCs will happily mount any of the 6 CEP *P1* creatures, and on dismounting, the relevant creatures will be re-spawned as expected.


BUT...


I want to have blueprints of cavalry troopers and officers ALREADY mounted, so that they can be possessed by the DM while walking waypoints and so ride up to a group of PCs and then dismount to interact with them.


Whenever I try this, the NPC duly dismounts and appears on the ground, but the horse or pony he was previously riding does NOT re-spawn beside him! Obviously, this is a big immersion-breaker!


 


I am guessing this is because the blueprint placed in an area has been given, say, a "Brown Horse" phenotype in the toolset, and has therefore not "actually" mounted his steed.


 


Does anyone know the correct script coding or variables that could allow this to happen? Maybe via a custom OnSpawn script?


 


Any light shed on this minor issue would be most gratefully received.


 


 


 



               
               

               
            

Legacy_MerricksDad

  • Hero Member
  • *****
  • Posts: 2105
  • Karma: +0/-0
cep horses and ponies issue
« Reply #1 on: August 27, 2014, 03:05:40 am »


               

Without looking, I would guess that because no horse object was ever initialized, calling to recreate the horse object which was taken away onMount references a null object.


 


If I were you, onspawn I would programatically create that horse which goes with the rider, set it's location to that of the rider, and then mount it on a tiny delay. More than likely, you won't see any of that happen, but you might depending on where it is located in relation to your character when it enters the region the creature will spawn in.


Just my opinion, and I will admit I am not at all educated in NWN horses.