Possible to turn collisions off for an object via script?

Post » Thu Jun 21, 2012 4:47 pm

Pretty much what the title says, Is there a way to turn on and off collisions for an object via script? For an actor there is setGhost() but I don't see anything similar for an object.
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Thu Jun 21, 2012 6:37 pm

SetMotionType(Motion_Keyframed)

no collision, no havok physics

http://www.creationkit.com/SetMotionType_-_ObjectReference
User avatar
Ally Chimienti
 
Posts: 3409
Joined: Fri Jan 19, 2007 6:53 am

Post » Thu Jun 21, 2012 9:29 pm

Hmmm, that was exactly what I was using, however the object still collides with the player. It probably doesn't collide with other objects though, haven't tested that.
User avatar
Lucy
 
Posts: 3362
Joined: Sun Sep 10, 2006 4:55 am

Post » Thu Jun 21, 2012 4:26 pm

SetMotionType(Motion_Keyframed)

no collision, no havok physics

http://www.creationkit.com/SetMotionType_-_ObjectReference

I have used Motion_Keyframed to disable Havok, but my objects still have collision.
User avatar
Vicky Keeler
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:03 am

Post » Thu Jun 21, 2012 10:15 am

really?

it might be because i always use translatetoref after motion keyframed

translateto and translatetoref will 100% guaranteed turn off collision (at least while it is in motion, i dont remember if it stays that way)
User avatar
Gill Mackin
 
Posts: 3384
Joined: Sat Dec 16, 2006 9:58 pm

Post » Thu Jun 21, 2012 4:01 pm

Yeah, I am using translateTo and translateToRef and it turns off collisions when going through stuff like walls or other objects, however when the items hits the player it pushes him back. And once translation is done the object becomes a barrier to the player unless havoc is turned back on.
User avatar
Alisha Clarke
 
Posts: 3461
Joined: Tue Jan 16, 2007 2:53 am


Return to V - Skyrim