Jump to content
Sign in to follow this  
Herr Doktor

Exec Script after reloading

Recommended Posts

Hi,

I am just making a Mission for OFP. I used some custom textures for individual Soldiers. Unfortunately when the game was reloaded the textures are invisible. Due to that fact I wrote a Script to reload the textures. Now I would like to know how the script could be automatically (so not by radio 0-0-x) exec after the game had been reloaded.

Thanks for your help in advance

Share this post


Link to post
Share on other sites

I read that OFP resets the time-variable to 0 when you reload the mission.

So make a script like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

~1

@time < 1

; reset all the stuff

...

...

Share this post


Link to post
Share on other sites

you should do otherwise though, since the @ command hits very bad on the performance.

Change it to

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">~.5

#wait

~1

? (time>=1) : goto "wait"

; reset all stuff

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  

×