Difference between revisions of "PlaceActorAtMe - ObjectReference"

m
I had issues getting the script to compile and about 30 minutes later, I noticed that I was using Actor instead of ActorBase. I decided it would be a good thing to note here.
imported>Cipscis
(→‎Examples: Removing example using GetForm_-_Game, as this function should never be used this way. Scripts should be blind to the contents of data files)
imported>DSoS
m (I had issues getting the script to compile and about 30 minutes later, I noticed that I was using Actor instead of ActorBase. I decided it would be a good thing to note here.)
Line 36: Line 36:
; Place a new boss bear at this location
; Place a new boss bear at this location
MarkerProperty.PlaceActorAtMe(BearBaseProperty, 3)
MarkerProperty.PlaceActorAtMe(BearBaseProperty, 3)
</source>
==Extra Info==
For users who are having issues getting this to compile and getting the error:
"type mismatch on parameter 1 (did you forget a cast?)"
Make sure that you are using ActorBase instead of Actor in your Property setting!
For Example:
<source lang="papyrus">
ActorBase Property ActorToPlace Auto
Event OnSomething(stuff here)
    SpawnMarker.PlaceActorAtMe(ActorToPlace, ActorLevel).StartCombat(GetPlayer())
EndEvent
</source>
</source>


Anonymous user