HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera - mouse scroll

04-13-2011, 11:23 AM#1
AzuhaSky
Hi!I have a question for Camera code!
When I lock camera to a unit,I was change Distance to target with value 2000!(Example is it!! )But when I scroll mouse or press Insert or Delete,camera is change Distance to target with default value! I want when I scroll mouse,my camera don't change distance to target to default value (1700~1800) that value will change to my value(2000)!
Please help me!Thank you so much!
04-13-2011, 01:13 PM#2
Fledermaus
Periodically update the distance to target, every 0.10 seconds or so should be fine
04-14-2011, 01:47 AM#3
Nuclear Arbitor
yeah, it's messy (ingame) but your best bet.
04-14-2011, 09:17 AM#4
Bribe
I used a TriggerSleepAction to fix this problem, never messed up for me.
04-26-2011, 05:20 PM#5
[VDM]Amn
or disable the player's control