Maybe I was too vague...I want to find out if _car is a JeepPolice... Not if a JeepPolice is a _car...
Or maybe I'm using it in the wrong syntax.
;If it's a police jeep, give it the siren ability
? _JeepPolice == typeof _car : addAction ["Turn siren on", "siren.sqs"]
siren.sqs
_car = _this select 0
;Is the cop in the jeep?
?(cop1 in _car) : _driver = cop1; goto "start"
?(cop2 in _car) : _driver = cop2; goto "start"
?(cop3 in _car) : _driver = cop3; goto "start"
?(cop4 in _car) : _driver = cop4; goto "start"
;tell them to get in
_msg = "Get in the jeep first."
?(cop1 == player) : hint _msg
?(cop2 == player) : hint _msg
?(cop3 == player) : hint _msg
?(cop4 == player) : hint _msg
exit
#start
;get rid of Siren on
_car removeaction siren
;replace it with Turn siren off
_car addAction ["Turn siren off","sirenoff.sqs"]
sirenon = true
publicVariable "sirenon"
#loop
_car say "siren"
~3.6
? sirenon : goto loop
exit
sirenoff.sqs
_car = _this select 0
;Is the cop in the jeep?
?(cop1 in _car) : _driver = cop1; goto "start"
?(cop2 in _car) : _driver = cop2; goto "start"
?(cop3 in _car) : _driver = cop3; goto "start"
?(cop4 in _car) : _driver = cop4; goto "start"
;tell them to get in
_msg = "Get in the jeep first."
?(cop1 == player) : hint _msg
?(cop2 == player) : hint _msg
?(cop3 == player) : hint _msg
?(cop4 == player) : hint _msg
exit
#start
;get rid of Siren off
_car removeaction sirenoff
;replace it with Turn siren on
_car addAction ["Turn siren on","siren.sqs"]
sirenon = false
exit
My police jeep isn't having any of these abilities.