Need to auto-zoom the camera to first person
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Need to auto-zoom the camera to first person
I play with the camera zoomed out, but this seems to interfere with the death script. When the camera is zoomed out, the script doesn't work. If I zoom the camera all the way in manually, the script works. So how do I get the bot to zoom the camera to first person so I can then have it call the death script?
Last edited by Mushroomstamp on Tue Aug 23, 2011 7:50 pm, edited 3 times in total.
Re: How can auto-zoom the camera to first person?
I think that code is zooming a long way back, have you tried setting it to 1?
I can't test this atm but I'd try that first and see how it goes.
Code: Select all
RoMScript("SetCameraPosition (0,0,1)")
Remember no matter you do in life to always have a little fun while you are at it ![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: How can auto-zoom the camera to first person?
That number puts it underground.
Re: How can auto-zoom the camera to first person?
try between 40-70 and see how they look
Remember no matter you do in life to always have a little fun while you are at it ![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: How can auto-zoom the camera to first person?
Ok forget what I said lol
I did some playing with this
the camera potision changes when you move around in the world, silly idea but anyway. You could try using that code to get the position and then use that to set the camera I guess.
I did some playing with this
Code: Select all
local x,y,z = GetCameraPosition()
Remember no matter you do in life to always have a little fun while you are at it ![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: How can auto-zoom the camera to first person?
Is there code I can put in command line to get the current position? Now it's dying fine, but not rez'ing right. ![Mad :x](./images/smilies/icon_mad.gif)
![Mad :x](./images/smilies/icon_mad.gif)
Re: How can auto-zoom the camera to first person?
Run MM with rom\getpos to have it show coordinates.
Scout/Knight/Rogue 70/66/66
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: Need to auto-zoom the camera to first person
I found that in an old post after my last post, but it's not right... camera zooms far away.kanta wrote:Run MM with rom\getpos to have it show coordinates.
Re: Need to auto-zoom the camera to first person
Might be easier to just check the key bindings for zoom and play with using a key to do it?
--=== Edit ===--
Meh couldnt find any key bindings for it
--=== Edit ===--
Meh couldnt find any key bindings for it
Remember no matter you do in life to always have a little fun while you are at it ![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
![Wink ;)](./images/smilies/icon_e_wink.gif)
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests