hertznca Posted February 20, 2012 Share Posted February 20, 2012 Hey, I am trying to script an XMarker to use this code upon activation of a triggerbox. However, upon compiling this script Scriptname _Summon extends ObjectReference ObjectReference Property MarkerPlace Auto Event OnActivate(ObjectReference MarkerPlace) MarkerPlace.PlaceActorAtMe(Game.GetForm(0x00014147)) EndEvent I get the error: type mismatch on parameter 1 (did you forget a cast?)the error is targeted at the line with MarkerPlace.Place ... I think its an error in the beginning of the script (missing library-esque thing?)Any suggestion appreciated Link to comment Share on other sites More sharing options...
Cipscis Posted February 20, 2012 Share Posted February 20, 2012 I can't think of any time in which you would ever want to use a formID in a script, unless it's for the sole purpose of printing it to a debug log. Use a property instead - have a read of this for a bit of detail on that - EditorIDs in Papyrus Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts