Objects Scale

Users who are viewing this thread

Hello, I wanted to know if I can return/reference an objects scale?


HHj1iV1.jpg


I have tried
(position_get_scale_x,<destination_fixed_point>,<position_no>),

but it returns the space it takes up relative to the worlds X,Y,Z

(prop_instance_get_scale, <position_no>, <scene_prop_id>),

and I can't figure out how to get the scale direction I'd like.

Any help would be fantastic as it would allow me to accomplish something that I think would be great.​
 
For anyone else who wants to do this I've figured it out, they need to be used with each other like

(prop_instance_get_scale, pos5, ":scene_prop_id"),
(position_get_scale_X, ":scale_X", pos5),


and presumably

(prop_instance_get_scale, pos5, ":scene_prop_id"),
(position_get_scale_X, ":scale_X", pos5),
(position_get_scale_Y, ":scale_Y", pos5),
(position_get_scale_Z, ":scale_Z", pos5),


Would return each scale axis.
 
Yeah, I'm working on a agent spawning osp that lets you choose an agent, an animation and item they hold and now I can start doing it properly now object scale can be referenced.
 
Back
Top Bottom