![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
01-07-07, 11:00 PM
|
#2 | |
|
Chief
![]() Join Date: Dec 2005
Posts: 326
Downloads: 5
Uploads: 0
|
Quote:
Right now I’m on my 451st trigger and 300th script and my brain is about to turn to jello but here goes: ------------ In the editor designate side 0 and side 1, and set ROE side 0 to wartime, ROE side 1 to peacetime. If the trigger is intended for AI sub then set ‘apply to all’ If trigger is intended for human platform set ‘apply to (human platform)’ ------------ Trigger 1 – side 0 engage side 1: Event / auto / run script (engage side 1) Script for trigger 1: Engage side 1 by side 0 for –1 seconds Send message (report, ownship, ‘side 0 is firing’) - this will put the fish in the water -------------- Trigger 2 - check if torpedo is present: apply to all / Event destination / civilian / side 0 / torpedo / any / radius 500 - this checks for presence of any torpedo fired by side 0, keep this one as 'apply to all' because all you are interested in is if the event happened or not --------------- Trigger 3 - if side 0 torpedo is present, tell side 1 change wartime and engage: Event auto / if complete trigger(Trigger 2) / run script (change wartime and engage) Script for trigger 3 Change ROE to wartime Send message ( report, ownship, ‘side 1 is engaging side 0’) Engage side 0 by side 1 for – 1 seconds --------------- Before I implement any new feature into my map I always baseline it and run a test case of it. And if it flies in the test case, then that qualifies it for the main map. If I can find some spare time i'll give this a shot and see what happens. Good luck |
|
|
|
|
|
