Jump to content
Sign in to follow this  
oli_uk

Set object spawn height

Recommended Posts

I remember there was a script I used to use in OFP, after many reformats and new PC's I have lost it.

Can anyone help me?

Thanks in advance,

oli

Share this post


Link to post
Share on other sites

this setPosATL (this modelToWorld[0,0,<height>])

Figured I'd give the new ATL pos commands a try.

Share this post


Link to post
Share on other sites
this setPosATL (this modelToWorld[0,0,<height>])

Figured I'd give the new ATL pos commands a try.

I get this error:

"Missing ;"

I tried using this instead:

this setPosition (this modelToWorld[0,0,10])

Received no errors, but didn't work :(

Share this post


Link to post
Share on other sites

this setPos [getPos this select 0, getPos this select 1,<height>];

Edited by dale0404
missed a ;

Share this post


Link to post
Share on other sites
I get this error:

"Missing ;"

I tried using this instead:

this setPosition (this modelToWorld[0,0,10])

Received no errors, but didn't work :(

Did you install patch 1.03? Also where are you calling this code?

Share this post


Link to post
Share on other sites
this setPos [getPos this select 0, getPos this select 1,<height>];

This works, thanks! :yay:

Did you install patch 1.03? Also where are you calling this code?

Oh, didn't know there was a new patch out, downloading now.

In the editor when you double click on an object, in the initialization box.

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  

×