Jump to content
Sign in to follow this  
Ink.

Can I move a character by his very X Y Z coords?

Recommended Posts

http://i.imgur.com/MkQbpW5.jpg

Is there anyway I can use coordinates to modify his position while he's still in the animation, so that I can have him sitting more properly? I would prefer this to be done via local exec while I'm ingame as he'll have more to do.

I've gotta do ~10 of these with varying anims. It would be soooo much easier to do if I can just tell them to move their x y or z coordinates specifically so if they are too far infront I can push them back, or too high to push them lower, so it appears they're sitting in the seat(s).

I've done:

player setPos [1,1,1]

But that just set me over the ocean. Is there anyway I can move myself by a few coords (so I could set my model lower so he fits with the seat better)?

Share this post


Link to post
Share on other sites

See https://community.bistudio.com/wiki/setPos

So something like

[url="https://community.bistudio.com/wiki/player"]player[/url][color=#000000][font=Lucida Console] setPos [ [/font][/color][url="https://community.bistudio.com/wiki/getPos"]getPos[/url][color=#000000][font=Lucida Console] this [/font][/color][url="https://community.bistudio.com/wiki/select"]select[/url][color=#000000][font=Lucida Console] 0, [/font][/color][url="https://community.bistudio.com/wiki/getPos"]getPos[/url][color=#000000][font=Lucida Console] this [/font][/color][url="https://community.bistudio.com/wiki/select"]select[/url][color=#000000][font=Lucida Console] 1, ([/font][/color][url="https://community.bistudio.com/wiki/getPos"]getPos[/url][color=#000000][font=Lucida Console] this [/font][/color][url="https://community.bistudio.com/wiki/select"]select[/url][color=#000000][font=Lucida Console] 2) -1] [/font][/color]

should do it

Share this post


Link to post
Share on other sites

Wow! This is even funny.

Good old times huh?

Share this post


Link to post
Share on other sites

Will this work in local exec while I'm ingame? Doesn't seem to be working.

Share this post


Link to post
Share on other sites

I faintly recall some problem with such positioning before a simulation even started, saddly i don't remember exactly what was going on (and i might be wrong), but if it doesn't work, try adding some sleep before you issue the setPos command.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×