When testing in game the goblin is summoned fine and it appears next to the player, however it does not add as a henchman, initially i thought it may be due to the creature not appearing immediately hence the added delay to the script.
Anyone have any ideas what ive done wrong? (it compiles fine)
--------------------------------------------------------------------------------
#include "ginc_actions"
#include "ginc_henchman"
void HenchmanAddVoid(object oMaster, object oHench)
{
HenchmanAdd(oMaster,oHench);
}
void main()
{
object oPC = GetFirstPC();
string sSlave = "slave_goblin";
location lLocation = GetLocation(oPC);
object oMaster = oPC;
object oHench = GetObjectByTag("slave_goblin");
ActionCreateObject(OBJECT_TYPE_CREATURE, sSlave, lLocation);
DelayCommand(5.0f, HenchmanAddVoid(oMaster,oHench));
}
------------------------------------------------------------------------------
Modifié par Ainiana, 22 mars 2011 - 04:19 .





Retour en haut






