TranslateToRef problem

Post » Wed Sep 03, 2014 10:16 am

Im tryting to make explosion that svcks in everything nearby. For this I use TranslateToRef. It works on actors but it doesnt work on anything else like weapons or armor. What is interesting the OnTranslationAlmostComplete event fires but the object is not moving at all.

I dont know why. Anyone has experience in this?

User avatar
Sudah mati ini Keparat
 
Posts: 3605
Joined: Mon Jul 23, 2007 6:14 pm

Post » Wed Sep 03, 2014 12:46 pm

Try casting the weapon/armor as objectreference but first you have to cast them as form.

User avatar
Meghan Terry
 
Posts: 3414
Joined: Sun Aug 12, 2007 11:53 am

Post » Wed Sep 03, 2014 10:48 am

Doesn't Translate() only work on actors and activators? It's discussed in the complete example scripts page, for moving an object without it fading.
User avatar
Chris Ellis
 
Posts: 3447
Joined: Thu Jul 26, 2007 10:00 am

Post » Wed Sep 03, 2014 4:39 pm

@B1gBadDaddy

Thank you! Exactly what I was looking for. SetMotionType(1) solves the problem.

User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am

Post » Wed Sep 03, 2014 4:28 pm

:)
User avatar
jessica robson
 
Posts: 3436
Joined: Mon Oct 09, 2006 11:54 am

Post » Wed Sep 03, 2014 5:54 am

You might also be interested in http://www.gamesas.com/topic/1384695-actor-magnet-tutorial/ by Verteiron. He uses PushActorAway() with a negative value to svck actors in. I've used it before and it works very well in game. There are also a lot of videos http://www.nexusmods.com/skyrim/mods/15182/?

User avatar
Wayland Neace
 
Posts: 3430
Joined: Sat Aug 11, 2007 9:01 am


Return to V - Skyrim