I have a problem with my map, its a race map and you build the vehicles with an action called 'Build'
only two scripts have control over the action
playeractions.sqs:
#init
@!Alive Player
player removeaction NewCar; player sidechat "Build Removed [playeractions.sqs]"
@Alive Player
removeallweapons player
_TempCHT = "Parachute" createvehicle [getpos player select 0, getpos player select 1, 70]
player moveindriver _TempCHT
_TempCHT setpos [getpos _TempCHT select 0, getpos _TempCHT select 1, 70]
~2
NewCar = player addaction ["Build", "Actions\CreateCar.sqs"]; player sidechat "Build added [playeractions.sqs]"
goto "init"
and createcar.sqs
Temp = RealType createvehicle getpos player
Temp SetDir getdir Player
~0.01
player moveindriver Temp
Temp Setidentity ""
player removeaction NewCar; player sidechat "Build Removed [CreateCar.sqs]"
Hint Format ["Your %1 is Ready", RealType]
~5
?(Alive Player):NewCar = player addaction ["Build", "Actions\CreateCar.sqs"]; player sidechat "Build added [CreateCar.sqs]"
sometimes during the game, the build option is not there, and this can be a real problem as the only way to fix it is to comit suicide :/
any suggestions why it may not appear?
or how i can detect whether it is present?