| 11-25-2003, 02:11 AM | #1 |
1. is there a way to have dodads block your selection without makeing them all into a netral passive building? 2. How could I simulate recoil? as in when I click somthing( an attack trigger runs) and the mouse jumps up an amount? or prehaps use a ditrcting fade filter? One more... Is there any way to detect the terrain height of a unit? I ask because there are some camera sagging issues with cliffs... |
| 11-25-2003, 12:21 PM | #2 |
I believe doodads all block your selection, as long as you can't see through them..? You could rock the camera back a bit... no way to move the mouse cursor as far as I know. Can't detect terrain height. No way. You can detect the Cliff level, that might help. You can also detect the Z value of the Current Camera Source or Target, so if you did something like switch the camera instantly to a camera that targetted the spot of ground you wanted the height of, check the Z value, then instantly change the camera back... it would probably look ugly, but in theory it might not show up. |
| 11-25-2003, 07:06 PM | #3 |
1. why would I psot this if they did? 2. exallent idea, il use a short, violent camera sway 3. can you explain further? how can I detect cliff level? If I can I can have a differnt camera setting for each level, and if I do it over, say, 1 second it will look natural. |
| 11-25-2003, 09:47 PM | #4 |
There's a function - it returns an integer - it's called "Environment - Terrain Cliff level" or something like that. You give it a point, and it gives back the cliff level. It's not the Z value of the terrain, but you can get a rough estimate of the Z value if there's not too much up-and-down (apart from cliffs) by multiplying the Cliff Level by the height of a cliff (I think it's 128, but test it out first 'cos I'm not sure) Oh about the doodads blocking your selection... could you make them destructibles? You could just have them selectable as None and they should block whatever's behind them, no problem. |
| 11-25-2003, 10:00 PM | #5 |
The point was not have to do them all over again, but thanks:D Il go look for that function! EDIT: wow, that works wonders! thanks alot man!:D P.S. check out the link in my sig, it kicks *** |
