IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> Spotlight Help?, Can't work
0Commander Xfactor(guest)
post Jun 19 2008, 03:36 PM
Post #1



Guests





Ok, I made my first spotlight trigger. Butt when I wallked into the light the game crashed. Do you guys know how to mix this? I set the trigger up like this.

Event:
35. Enemy In Spotlight

Action:
52. Change Light Behavior

Action Parameters:------- Parameter Value:
'Light Behavior------------ '3

This post has been edited by Commander Xfactor: Jun 19 2008, 03:37 PM
Go to the top of the page
 
: | +Quote Post
Crash
post Jun 19 2008, 09:50 PM
Post #2


Ghost Stalker
Group Icon

Group: Members
Posts: 1,282
Joined: 27-October 06
From: Norway
Member No.: 173
Alliance: Nod
Favorite game: Tiberian Sun



First, welcome to the forum. smile.gif

Second, get my fixed Fsdata.ini that contains all the fixes I know of and replace the one in your final sun folder. It is attached to this posts.

Third, here is the way I got it to work with no bugs at all:

1. Create a local variable called "Alarm", and put the variable to be 0.
2. Create the trigger with the event "34 Enemy in spotlight", the action "52 Set search light mode | Parameter: 3", and action 2 is "Set local variable Alarm" (This makes the spotlight go on the unit). Set the trigger to repeat.
3. Create a trigger with the event "Local is set | Parameter: The variable alarm", the action "Play sound effect | parameter: 161" and action nr. 2: "Clear local variable "alarm"". Set the trigger to repeat.
4. Attach the tower you want this to work on. I think having one tower per this setup is the thing that works best, but you might try 2 close to each other, but many on different spots might screw things up.

Result: When the unit enters the zone of the spotlight, the spotlight will cast over the unit. Then the action that sets the variable will make the other trigger run, and will make the sound of the alarm, and will clear the variable. Whenever the unit is in the spotlight, the variable will activate, and will create more sound.

Happy map-making! smile.gif Hope it works for you! Ask if there is something I didn't explain properly or anything. If you don't get it to work, you can private message me the map and I will do it for you. wink1.gif

This post has been edited by CrashKing: Jun 19 2008, 09:51 PM


--------------------
Perfection can never be achieved; it's merely approachable.
Go to the top of the page
 
: | +Quote Post
0^Tindall(guest)
post Jun 20 2008, 03:48 AM
Post #3



Guests





Thanks dude!
Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 27th June 2025 - 06:19 AM


XGhozt.com