I'm currently working on a hunter mod where I want to make it possible to place tents, campfires and other hunter objects dynamicly in the world, but I have run into a problem.
I am trying to spawn a object next to the player, prefereble a campfire with animating fire, though right now I'm just trying to spawn what ever object next to the player, without succes.
I have tried the following.
Creating a WETempleActivator, to listen for its OnActivate event
Assign a Papyrus script to the WETempleActivator
Scriptname helloWorldScript extends ObjectReference{First script};Assigning the value of a Idle marker property from the Properties button, right now I'm trying to spawn the object at this marker.ObjectReference Property Marker AutoEvent OnActivate(ObjectReference akActionRef) ObjectReference spawn = Marker.PlaceAtMe(EncWolf)endEvent
I'm getting the error that EncWolf is undefined, which tells me its trying to grab an variable named EncWolf. EncWolf is an editor ID for a regular grey wolf, the Editor ID list is probably only defining object within the editor itself and not ingame.
I cannot figure out how to make a variable containing a link/reference to that Wolf base object and or other object(s), since I dont create an object in the render window but instead dynamicly generating the object with Papyrus when an event is happening.
I have figured out I have to somehow get the base of the object I want to create since "PlaceAtMe" creates a copy of the base object
From Creation Kit Wiki "Creates a new instance of an object and places it at the calling object's location."