So I am working on a script where a certain player has some extra menu items to respawn vehicles. The game starts and he has the menu. The problem is when he dies, he does not respaen with the menu items any more. They can disconnect and reconnect to the came and get the menus back. I need to be able to have them come back after respawn.
The code I have is as follows:
;;E-BFCO_Veh_Respawn_Menu.sqs
;;This script will govern the East BFCO and his menu system for respawning vehicles
;;called in init.sqs
;; [] exec "E-BFCO_Veh_Respawn_Menu.sqs"
@alive Player
?(Player == EBFCO): goto "GiveMenu"
exit
#GiveMenu
EGiveMenu=0
_AID = Player addaction ["Vehicle Respawn Menu","E-VehMenu.sqs"]
_AID2 = player addaction ["Obj Status Report","Report_Obj.sqs"]
#Wait
?(EGiveMenu==1): goto "GiveMenu"
?(!alive player): goto "NotAlive"
~3
goto "Wait"
#NotAlive
Player RemoveAction _AID
Player RemoveAction _AID2
@(alive Player)
goto "GiveMenu"
Any help is appreciated.