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

Post » Mon May 07, 2012 8:58 am

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
Ron
 
Posts: 3408
Joined: Tue Jan 16, 2007 4:34 am

Post » Mon May 07, 2012 4:13 pm

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
loste juliana
 
Posts: 3417
Joined: Sun Mar 18, 2007 7:37 pm

Post » Mon May 07, 2012 6:31 am

Wow. What a damn great work-around.

THANKS
User avatar
Rachell Katherine
 
Posts: 3380
Joined: Wed Oct 11, 2006 5:21 pm


Return to IV - Oblivion

cron