Nop,
I tried with the "Wp:SetGlobalVariable( VAR_WASSERBOMB_STATE, 1 );" command after initialized this variable in the CREW\init.aix file.
Triggering this in a crew script ( wp: ) works fine, my soundman report the depth charges.
But I didn't manage to make a ship script changing this variable, putting a wp: command or "Ship:SetGlobalVariable( VAR_WASSERBOMB_STATE, 1 );" in a ship script will result in a CTD.
And there is no way of detecting when depth charges are fired anywhere else than in the ship tactics scripts.
Or there is a sort of wp:is_depth_charges_in_water() but I didn't find it.
Would be nice to have a list of working commands for each AI scripts Crew/Ship/Dialog.
Hopefully devs will give some more detailled .doc files for scripting help along with the 1.2 patch.
Cheers.
|