Im currently working on a mod that needs to give players an item when the mod first starts... How do i do something like that?
Im currently working on a mod that needs to give players an item when the mod first starts... How do i do something like that?
put a script somewhere that suits you and make it go
OnInit ()
Game.GetPlayer().AddItem ( Item, 1 )
endEvent
you'll need your item "item" in a property, it can either be a base item or a reference.
you can also put the item itself somewhere in the world, add a script to it and go
OnInit ()
Game.GetPlayer().AddItem ( ( Self as ObjectReference ) )
endEvent
in this case, you'd not need a property.
edit: might be you'd have to go "( Game.GetPlayer () ).AddItem..." (additional brackets), but i don't actually think so (no ck open right now)
Thanks! Do all scripts get the "OnInit()" method called every time the game is started? or just once per new game?