HorseCreateHorse script
EpicValor
Member Posts: 12
Why won't this lexicon example script compile? There are only 2 examples I have seen to make scripts to create a mount for a PC, and they're both identical to this. I have a compiled version I imported along with the mounts that works, but I want to change it to work on an item activation. However, it won't compile. Duplicate function error for some reason.
#include "x3_inc_horse" void main() { object oPC = GetPCSpeaker(); object oHorse = HorseCreateHorse(GetResRef(GetObjectByTag("HorseTemplate")), GetLocation(oPC), oPC, "NewHorse"); }
#include "x3_inc_horse" void main() { object oPC = GetItemActivator(); object oHorse = HorseCreateHorse(GetResRef(GetObjectByTag("HorseTemplate")), GetLocation(oPC), oPC, "NewHorse"); }
0
Comments
The version you posted here has two void main() sections. Perhaps you mean that neither script will compile for you standalone, but, as published, it won't compile because you have two scripts in one.
Problem solved. Thanks for your help.