Jump to content
Sign in to follow this  
miraoister

How do i find a scipt?

Recommended Posts

the BOH mod has a really cool Ambulance with a siren, I want to script it so the ambulance is going down the street with the siren going, the script isn't published anywhere, not on the BOH website or anywhere else.

is there a piece of software I could download that could help me look through the BOH pbo files to find the correct script?

Share this post


Link to post
Share on other sites

Notepad++ has a 'find in files' function, but first you need to unpack the files to look at the scripts and models.

Have you tried asking the makers of the mod?

Share this post


Link to post
Share on other sites
the BOH mod has a really cool Ambulance with a siren, I want to script it so the ambulance is going down the street with the siren going, the script isn't published anywhere, not on the BOH website or anywhere else.

is there a piece of software I could download that could help me look through the BOH pbo files to find the correct script?

If you want to unpbo you need PBO Decryptor 1.5. But not sure this one unpbo everything sometimes it doesn't work. Some ArmA2 decryptor are better search on armedassault.info or armaholic.

The script you are looking for is in BOHCONFIG.pbo.

You can directly execute the script. Name the ambulance ambulance1 and type in the init field or in the init.sqs [ambulance1] exec "\BOHCONFIG\scripts\Siren.sqs".

If you prefer to have better control on the script here's the sqs which you can include in your mission folder:

Name the ambulance ambulance1 and type in the init field or in the init.sqs [ambulance1] exec "siren.sqs"'

_Truck = _this select 0
goto "Exit"

#loop
_Truck Say "BOHsiren"
~6.6
?(_Truck animationphase "Siren" <= 0.1):goto "Exit"
?(not Alive _Truck) : goto "End"
goto "loop"

#Exit
?(_Truck animationphase "Siren" > 0.1):goto "loop"
?(not Alive _Truck) : goto "End"
~0.05
goto "Exit"
#End
_Truck animate ["Siren",0]
exit;

cya.

Nikiller.

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  

×