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

Post » Fri Feb 18, 2011 10:26 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
Cheville Thompson
 
Posts: 3404
Joined: Sun Mar 25, 2007 2:33 pm

Post » Sat Feb 19, 2011 8:50 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
bonita mathews
 
Posts: 3405
Joined: Sun Aug 06, 2006 5:04 am

Post » Sat Feb 19, 2011 6:58 am

Wow. What a damn great work-around.

THANKS
User avatar
Louise Andrew
 
Posts: 3333
Joined: Mon Nov 27, 2006 8:01 am


Return to IV - Oblivion