Jump to content

Home

[K1] Scripts for item spawning


Zgred_2

Recommended Posts

Hey everybody, I was wondering if someone could help me with a scripting problem.

 

I've been wanting to spawn an item in a placeable that isn't uniquely named, so I've been using gameunlimited's tips and so far I've made a script like this:

 

void main()
{
CreateItemOnObject("xxx", GetNearestObjectByTag("punk_treasm3", GetFirstPC()));
CreateItemOnObject("yyy", GetNearestObjectByTag("punk_treasm3", GetFirstPC()));
}

 

Naturally xxx and yyy are replaced with actual item TemplateRef's :lol:

 

The cylinder is one of the ones near bastila atop the temple on the unknown world, in module unk_m44ac. I would like help with just putting the item inside one of them, I'll play with which one specifically later (though I've been thinking about the one nearest the computer terminal.

 

Thanks! :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...