erratichippo Posted January 7, 2016 Share Posted January 7, 2016 Put a negative value in the magnitude of the pushaway function it will pull the object to you. Link to comment Share on other sites More sharing options...
firepower02 Posted January 11, 2016 Author Share Posted January 11, 2016 This is how I wrote the script, but I get an error. Caster.PushActorAway(ClosestMarker, -50.0) Link to comment Share on other sites More sharing options...
firepower02 Posted January 11, 2016 Author Share Posted January 11, 2016 (edited) I swapped closestmarker and caster, it worked, but I want the closestmarker to be pulled to the actor, not the other way around. Edited January 11, 2016 by firepower02 Link to comment Share on other sites More sharing options...
firepower02 Posted January 11, 2016 Author Share Posted January 11, 2016 pushactoraway is for actors only. translatetoref cannot be used on weapons. only the applyhavokimpulse works for weapons. I have a problem, how do I set which direction it goes, I want it to specifically move to an actor ref. Link to comment Share on other sites More sharing options...
sLoPpYdOtBiGhOlE Posted January 12, 2016 Share Posted January 12, 2016 (edited) Have you tried SetMotionType(4) on the weapon then use TarnslateTo to move it?http://www.creationkit.com/SetMotionType_-_ObjectReference I've had no problems moving weapons with TranslateToObviously won't work on a weapon that is held in hand by PC / NPCWhich you could call dropobject() before hand if needed to do things that way. Edited January 12, 2016 by sLoPpYdOtBiGhOlE Link to comment Share on other sites More sharing options...
firepower02 Posted January 12, 2016 Author Share Posted January 12, 2016 It works, the sword was moved by translateto, however, this makes it passable, like it will lost its collisions. How do I enable its collision back?I used , but didn't work. Event OnTranslationComplete() ClosestMarker.SetMotionType(1, false) Sparkle.Stop(ClosestMarker) Debug.Trace("Translation Done!")EndEvent Link to comment Share on other sites More sharing options...
firepower02 Posted January 12, 2016 Author Share Posted January 12, 2016 How about applyhavokimpulse? How do you control which direction it goes? Link to comment Share on other sites More sharing options...
Recommended Posts