Jump to content

[Request] script to summon flora/food/itens at xmarker using a lever


Neru2308

Recommended Posts

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/Flora

anyone can edit my current script to make it happen '-'?

 

The script :

 

Scriptname wishmasterencress extends ObjectReference

import game
import debug

ActorBase property myNPC auto

ObjectReference property SpawnPlace auto

Event 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

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 AddItem

i.e. myChest.AddItem(myObject,1)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...