How do I ensure a summon object is always aligned with the g

Post » Wed Dec 07, 2011 1:53 pm

For example, if I am standing on a hill, and I summon a crate or barrel to both my left and right, how am I to ensure that the barrel doesn't stay level with the player in the z axis (this applies to when using targRef.moveto player x y z) and appears as though levitating? I'd like my object to take into account that, when being summoned around the player, there is a ground, and the object must reach it.
User avatar
liz barnes
 
Posts: 3387
Joined: Tue Oct 31, 2006 4:10 am

Post » Wed Dec 07, 2011 2:23 am

The trick is:

Script a dummy rat to move to where the barrel is to go, because they are an actor they will spawn on the ground rather then in the air, move the barrel to them then move away/disable the rat. Barrel will now spwan on the ground.
User avatar
Lavender Brown
 
Posts: 3448
Joined: Tue Jul 25, 2006 9:37 am

Post » Wed Dec 07, 2011 2:18 pm

Wow. What a damn great work-around.

THANKS
User avatar
ONLY ME!!!!
 
Posts: 3479
Joined: Tue Aug 28, 2007 12:16 pm


Return to IV - Oblivion