Anyone is good with cameras?
#1

Hello.Today I made shop which is based on GTA IV Gun Store.But how can I make to camera look at guns which are on table??How??Anyone is good with Cameras?Please help me...
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
Reply
#3

I don't know how that shop is but I think it's like you press "left" "right" and get a new weapon?
make it like create a object (that looks like the gun) on the table, when the player presses left/right you destroy it and make another weapon there and just set the camera on top of it so ou see the weapons.
Hope it helped
Reply
#4

Quote:
Originally Posted by Ranama
Посмотреть сообщение
I don't know how that shop is but I think it's like you press "left" "right" and get a new weapon?
make it like create a object (that looks like the gun) on the table, when the player presses left/right you destroy it and make another weapon there and just set the camera on top of it so ou see the weapons.
Hope it helped
Look It`s not problem to make it.Just problem is in that how to Set that camera to look at the table always when I did it It`s looking at floor or roof or maybe right corner of table..That is problem...It`s not problem to make it but problem is in that I don`t know how to get pos for camera looking at....??How?
Reply
#5

Anyone can help me?
Reply
#6

Doesen't this work? This will set the camera pos somewhere you want, and then you set it looking at something. You might have to disable the player controls, so he can't move.
Reply
#7

Please do NOT double post it make no sense for me to help you
Reply
#8

You could just get the camera pos, then you make SetCameraLookAt() just lower the Z with like 0.1 and it will look straight down i think.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)