WOTmodsproductions Posted May 4, 2018 Share Posted May 4, 2018 (edited) Im trying to work out how to move an object to the player via a magic effect, I can only get it to work if its an actor: This script works: Scriptname BREACH extends activemagiceffectActor property BRAC Auto Const MandatoryEvent OnEffectStart(actor t, actor c)BRAC.MoveTo ( c )EndEventBRAC is the reference of the object (actor) which is placed in a testing cell, it must be a specific reference so when you double click on the npc in the creation kit I name it BRAC. Works fineExcept I want it to be a static or marker of some kind, but when I change this line toActor property BRAC Auto Const MandatoryStatic property BRAC Auto Const Mandatoryit gets an error on compiling the script saying that static cannot be called as an object referenceQuestion is, how can I get this script to work on a static object instead.The idea behind the script is a portal, reversing the script to move back and forth between the 2, I only used an actor to get the basics to work and it teleports fine, I just cant get it to work with anything elseAs you can see I'm not super good at scripting, just trying to get a basic mark and recall going here Edited May 4, 2018 by thelonewarrior Link to comment Share on other sites More sharing options...
Evangela Posted May 4, 2018 Share Posted May 4, 2018 (edited) Change static to ObjectReference. MoveTo will accept objectreferences as the caller, not statics. Make sure to fill the property. Edited May 4, 2018 by Rasikko Link to comment Share on other sites More sharing options...
WOTmodsproductions Posted May 4, 2018 Author Share Posted May 4, 2018 (edited) Ok that worked great thanks :) Edited May 4, 2018 by thelonewarrior Link to comment Share on other sites More sharing options...
Recommended Posts