Jump to content
Sign in to follow this  
DJOlmstead

Code problem

Recommended Posts

I am working on a mission where I want a sniper to stay in a position laying down for the whole game. How ever the following code doesn't accomplish what I want:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setunitpos "down"<span id='postcolor'>

I put that into the unit init line, and even tried naming the unit and putting it in a waypoint. However, nothing works. It just stands there doing nothing. What could I do to correct this problem?

Also, I downloaded a program that i used to write basic scripts, but I have no idea where to put them in order for them to run in my mission. I am aware on where to put them in the mission, but what folder do I put it in?

Share this post


Link to post
Share on other sites

I dunno why - this setunitpos "DOWN" - wont work for you but the second part of you question, you put all the scripts into the mission folder, they don't go in a seperate folder.

Share this post


Link to post
Share on other sites

Thanks for replying. I'm running v.1.46, and I set the unit i wanted to be down on a hill. Could any of this be the problem? Maybe someone could enlighten me? confused.gif

Anyway, the script answer was very helpful, if somewhat embarrassing on my part. tounge.gif Sometimes the obvious doesn't hit me like it should...

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (DJOlmstead @ 30 April 2003,16:05)</td></tr><tr><td id="QUOTE">Sometimes the obvious doesn't hit me like it should...<span id='postcolor'>

we have all been there my friend wink.gif

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  

×