| 01-27-2006, 09:35 AM | #1 |
This is sort of an advanced trigger concept. Is there a way, (not gui as I have already tried) to lock the camera bounds to the point of a target with a width and height? I know you can set the camera bounds, as you can set the camera view, but can you lock the camera bounds as one would lock the camera view? An idea would be to use a trigger that listens for a specific movement event, however I have seen no such event listener. The idea would be to listen for every-time the unit is in movement and then re-lock the camera bounds. Problem is that you can't use a timer for this as any number that would eliminate the jagginess would create considerable lag on its part. This is why advanced triggers would be the only way to go. If there is a way to perform an action during a continuous event, then that would be the way. Just sort of brain storming. Any ideas? |
| 01-27-2006, 10:01 AM | #2 |
Errrrm... Are you talking about edge-of-map camera bounds, editable through map properties or some other camera bounds i don't know of? |
| 01-27-2006, 10:16 AM | #3 |
You can dynamicly change the camera bounds, qwertyui. |
| 01-27-2006, 10:20 AM | #4 |
I see. Interesting... Can you do it for multiple players without desynch? Also, the OP asked for specific Jass functions. I'd like to see them too ^^ |
| 01-27-2006, 10:28 AM | #5 |
Spellcraft uses a system where the camera and minimap are dynamicly changed depending on the game selected (and hence area of play). In this situation, perhaps you could run it every x seconds? |
| 01-27-2006, 10:42 AM | #6 |
There are both GUI and JASS methods for this. GUI: Trigger: ![]() Camera - Extend the camera bounds for Player 1 (Red) west by 0.00, east by 0.00, north by 0.00, and south by 0.00![]() Camera - Set the camera bounds for Player 1 (Red) to (Playable map area)JASS: JASS:
call AdjustCameraBoundsForPlayerBJ( bj_CAMERABOUNDS_ADJUST_ADD, Player(0), 0, 0, 0, 0 )
call SetCameraBoundsToRectForPlayerBJ( Player(0), GetPlayableMapRect() )
JASS functions are BJs, so you may want to use JSP to find the corresponding natives. |
