Jump to content

Recommended Posts

Southy and I are using the below script to add a bomb cam to our GBUs. Its an adaptation of footmunchs original bomb cam script. What i want to do is adapt it further but i need some help. I want to add a check so that its available only when the gunner is in the optic view. this way if a player does not want to use it he doesnt have too.

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

; Init our local vars

_array = _this select 0

_weapon = _array select 1

_ammoname = _array select 4

_plane = _array select 0

; If it's just the gun, then get out

?(_weapon == "PRACS_M2k_DEFA_Cannon"): goto "Exit"

; Decide what we've fired

? (_weapon == "PRACS_M2k_GBU_Launcher"): goto "MoveMissile"

#MoveMissile

; Get the missile object

_missobj = nearestobject[_plane, _ammoname]

; Attach a camera to the cbu

? (_weapon == "PRACS_M2k_GBU_Launcher"): goto "GbuCam"

#GbuCam

?(!(player in _plane)): exit

?(!RKTWeaponCam): exit

_missobj switchCamera "external"

@(!(alive _missobj))

~3

_plane switchCamera "external"

exit

#Exit

exit

Share this post


Link to post
Share on other sites

i hat another revelation.... instead of adding a check .... how would one make this run off of a hot key?

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

×