Hi everyone
Trying to get a script to work that will spawn some bandits at a set of spawn xMarkers every time the player walks through a trigger box when its enabled using a parent xMarker.
This is what I have so far, but haven't been able to work out what I need to actually get the spawn to work. Tested trigger box actually triggers with debug messages so thats good to go but no luck with NPC spawns, hoping to make it absolute as well so NPCs will spawn everytime player walks in trigger box
Scriptname NL_BMT_EnemySpawn extends ObjectReference
;Player
Actor Property PlayerREF Auto
;Bandit Raid
Actor property NL_Bandit auto
ActorBase NL_BanditBase
ObjectReference Property BMT_FalkreathMarker auto
ObjectReference Property BMT_SpawnMarker auto
Event OnTriggerEnter(ObjectReference akActionRef)
if (akActionRef == PlayerREF && BMT_FalkreathMarker.IsEnabled())
NL_BanditBase = NL_Bandit.GetBaseObject() as ActorBase
BMT_SpawnMarker.PlaceActorAtMe(MyActorBase
debug.messagebox("spawn")
endif
endEvent