void main()
{
CreateItemOnObject(R"gen_im_wep_mel_lsw_lsw.uti", OBJECT_SELF, 1, "", TRUE);
}
Always works for me as the player to recieve gear
What I am trying to do is figure out how assign certain gear to my party members upon running a script after my cutscene plays.
void main()
{
CreateItemOnObject(R"gen_im_wep_mel_lsw_lsw.uti", OBJECT_ALISTAIR, 1, "", TRUE);
}
Does Not Work!
Assigning custom weapons to different party members... HELP
Débuté par
DemonSlayer_1
, déc. 28 2009 05:55
#1
Posté 28 décembre 2009 - 05:55
#2
Posté 28 décembre 2009 - 12:43
Well, i think you have to obtain some kind of reference to Alistair's object. OBJECT_ALISTAIR might not work under all circumstances (he might not even be in your party), so simply using that constant might not work.
#3
Posté 28 décembre 2009 - 10:48
I've been curious about something like this myself for awhile now. I wanted Alistair to have a 2H weapon instead of a sword/shield when I first meet him in Ostagar.
Unfortunately it seems that adding an item to an NPC is nothing at all like adding an object to, say, a container. :\\
One thing I have been wondering is if there is a command for NPCs similar to object oplayer maybe like onpc or something because I was thinking then I could do a script that was like:
object oNPC = GetAlistair();
and then I'd know what to do from there. I mean that was just a sloppy example but you get the idea.
Unfortunately it seems that adding an item to an NPC is nothing at all like adding an object to, say, a container. :\\
One thing I have been wondering is if there is a command for NPCs similar to object oplayer maybe like onpc or something because I was thinking then I could do a script that was like:
object oNPC = GetAlistair();
and then I'd know what to do from there. I mean that was just a sloppy example but you get the idea.
Modifié par Jsmith0730, 28 décembre 2009 - 10:49 .





Retour en haut






