Aller au contenu

Photo

Script for rotating placeables in three dimensions


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
gtr201

gtr201
  • Members
  • 21 messages
 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.

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
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.

#3
gtr201

gtr201
  • Members
  • 21 messages
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.