Hi, is there a way to set all three angle properties for a placeable via a script? For example spawning a portrait or a poster lying on the ground instead of on a wall. I'm currently using
Location(GetArea(oMainControlled), Vector(124.635,24.4922,0.1), -38.0)
but it only takes an argument for the angle around the vertical. Can I call something else afterwards to 'fix' to rotation?
Thanks.
Script for rotating placeables in three dimensions
Débuté par
gtr201
, juin 24 2010 10:05
#1
Posté 24 juin 2010 - 10:05
#2
Posté 24 juin 2010 - 02:45
The easiest way would be to put the placeable in the area editor and mark it as inactive and then, activate the object when you want to.
If that is not possible (for example, working with OC areas), you could try SetOrientation and see if it suits your purpose.
If that is not possible (for example, working with OC areas), you could try SetOrientation and see if it suits your purpose.
#3
Posté 24 juin 2010 - 04:48
I'm dropping the placeable in via PRCSCR so I need total control of the orientation via script. I will fiddle with SetOrientation, when I looked at it last night I thought it only took the one angle argument but now I'm actually awake that might not be the case. I suppose the other option is to edit the model so that it's lying down according to it's local co-ordinates but that's a messy work around to my mind. Thanks for the help.





Retour en haut






