Jump to content
Sign in to follow this  
KiwisDoFly

Quick question on alarms....

Recommended Posts

Hey guys.

heres the problem: I have a town which gets attacked and I want to have an alarm sounding (the default alarm sound will do) at the player's base to notify of the attack. Now the thing is, the town and the base is like 5kms apart. I tried putting an EAST present trigger at the town and try to synchronise it with a NONE trigger with alarm sound in the effets at the base. Any ideas?

Share this post


Link to post
Share on other sites

Make a trigger at the town which is attacked, that will be activated when east or whoever the attackers are, are present.  In the on activation field, put:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">townattacked=1

Then create a trigger where you want the alarm to be sounded from.  In the condition field, put:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">townattacked==1

Make sure you take out the "this", that is already in the condition field.  Now go to effects and select the sound for the alarm. smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×