Jump to content

Home

Giving multiple items in script


Recommended Posts

So put same tag few times...

void main() {

object oItem=CreateItemOnObject("g_a_class4002", GetFirstPC());

object oItem1=CreateItemOnObject("g_a_class4002", GetFirstPC());

object oItem2=CreateItemOnObject("g_a_class4002", GetFirstPC());

}

It will spawn three item with ResRef "g_a_class4002" in PC's inventory.

Link to comment
Share on other sites

alright thanks

one other thing: I'm trying to skin g_w_blstrrfl001 but when I try it in game it just flat out doesn't work. I made two new .uti files, mandalore_rifle and republic_rifle, and I named the file the same exact thing, and I can't get it to work. help?

Edit: oh never mind. I was using a different tut than the one on this site. I'll follow that one

thanks again!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...