How to make an Object not able to be manipulated?

Post » Sun Jun 24, 2012 3:04 am

I am pretty new to this and I have searched High and Low for an answer but I have yet to find it.

I am doing a Sword in the Stone Quest series. I can place the Sword into the Stone and make it not Havoc settle. I can make it so it is not usable by the player, ( The words "Take Sword" appears when you hover over the sword and you can't place it in your inventory, but the problem comes when I hold down E and move the cursor it will move the sword around.)

What I want it to do is still show the "Take Sword" but when you click E, it triggers dialogue and there is no way for the player to manipulate or move around the sword.

I have tried just using a static object, but there is no interaction available for the static object.

Any help would be greatly appreciated.

Thanks.
User avatar
phillip crookes
 
Posts: 3420
Joined: Wed Jun 27, 2007 1:39 pm

Post » Sun Jun 24, 2012 9:57 am

http://www.creationkit.com/SetMotionType_-_ObjectReference should do it.
ScriptName ExcaliburScript extends ObjectReferenceActor Property KingArthurREF AutoEvent OnLoad()	SetMotionType(Motion_Keyframed)EndEventEvent OnActivate(ObjectReference akActivator)	If akActivator == KingArthurREF ; Budge		SetMotionType(Motion_Dynamic, False)	Else ; Do not budge		Debug.Notification("Ni!")	EndIfEndEvent
User avatar
Silvia Gil
 
Posts: 3433
Joined: Mon Nov 20, 2006 9:31 pm

Post » Sun Jun 24, 2012 4:59 am

Use an Activator and attach JustinOther's script as posted above.
User avatar
Dalia
 
Posts: 3488
Joined: Mon Oct 23, 2006 12:29 pm

Post » Sun Jun 24, 2012 9:29 am

You guys are awesome thanks, I'll let you know if that does the trick
User avatar
Kaley X
 
Posts: 3372
Joined: Wed Jul 05, 2006 5:46 pm


Return to V - Skyrim