| 09-29-2007, 10:59 PM | #2 |
hmm... its a tricky one, try using custom script to make the variables locals, eg Trigger: Custom Script: local boolean array zoomed
![]() Set Zoomed[(Player number of (Owner of (Casting unit)))] = True |
| 09-29-2007, 11:04 PM | #3 |
Hrm. I see what you did. That would require me to re-do the entire script though. If I create a Player Array and assigned them to players, is it possible to insert it into my custom script? |
| 09-29-2007, 11:34 PM | #5 |
Oh wow, thanks! |
| 09-29-2007, 11:37 PM | #6 |
your welcome, and i gave you rep because its lame to have none |
| 09-29-2007, 11:39 PM | #7 |
Lol. Repped for helping me. =) |
| 09-30-2007, 07:18 AM | #8 |
You can't do that. Local variable declaration has to be done before any code in the trigger. You're trying to declare locals after an If statement. The other thing is that I'm pretty damn sure that GUI Locals trick only works once per trigger. Edit: What is the purpose of this code, anyway? You're using locals when you have no need to. |
| 09-30-2007, 08:41 AM | #9 |
but just do it at the start of your trigger, Monkey |
| 10-01-2007, 05:53 AM | #10 | |
Quote:
The code is to create a custom filter for a specific player. I tested the map with my friends, and the camera would go all screwy, so the locals are needed to un-screw that screw. |
| 10-02-2007, 08:41 PM | #11 |
I don't think the locals will do anything for you, I'm not sure. |
