Neru2308 Posted February 14, 2017 Share Posted February 14, 2017 I'm doing a custom house where you can pull a lever and it will summon a custom npc/animal/monster/enemy/ally. Now comes the request, I want also use a script for summon food/potions/Floraanyone can edit my current script to make it happen '-'? The script : Scriptname wishmasterencress extends ObjectReferenceimport gameimport debugActorBase property myNPC autoObjectReference property SpawnPlace autoEvent OnActivate(ObjectReference akActionRef)SpawnPlace.PlaceActorAtMe(myNPC, 1)EndEvent extra: on some place of the house I need summon a npc with don't havok settle option, because he will be using a marker(shacklewallmarker), but i don't know how to summon npc with don't havok settle option, soo maybe i shoud place the don't havok settle option on the summoning script? ( have no clue how to do that also '-' halpplzi'manewbieT_T) Thank you for your time/atention. o/ Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 14, 2017 Share Posted February 14, 2017 Remove the ActorBase property and put in a Potion property (for food & potions) or a Ingredient property (for flora ingredients).Swap out PlaceActorAtMe for PlaceAtMe No idea about the havok thing Link to comment Share on other sites More sharing options...
Neru2308 Posted February 15, 2017 Author Share Posted February 15, 2017 Yes, it works o/Thank you again '-' Btw, i want make potions/flora spawn on a chest with a lever what can i do? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 15, 2017 Share Posted February 15, 2017 If you want them to appear on top off a chest:Place an xMarker where you want the item(s) to be spawned.When the lever is activated, use the xMarker as the SpawnPlace in your script above. If you want them to appear inside of a chest:Instead of PlaceAtMe you would use AddItemi.e. myChest.AddItem(myObject,1) Link to comment Share on other sites More sharing options...
Neru2308 Posted February 16, 2017 Author Share Posted February 16, 2017 It works \o/omg, thank you very much e_____eNow i can make a fake farm and garden full of chests with fake meshes and using a lever will spawn the ingredients *_* Link to comment Share on other sites More sharing options...
Recommended Posts