Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 10th Mar 2011 15:01
hello i'm making a game for a private contest
the game is a survival and i've bought model pack 10 and zombie apocalyipse for make it

i've made a player but when i move the camera the gun model remain in same position but not turn with the camera
thi is the code:


please help me i've only 28 days for make the game
[excuse for bad english i use google translate]
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Mar 2011 15:12
FPSC guns can be locked onto the screen, but they also tend to be pointing the wrong way. Say you have your gun loaded as object 10...

Lock object on 10
Rotate object 10,0,180,0

And that should stick it to the screen, in the right position, assuming that the weapon is setup like most of the weapons. I have the latest media pack and am using the weapons from that, which are by the same person AFAIK - so I think they should be the same. In fact I need to get model packs 9 and 10 as well, for nades and a sniper rifle.

Anyhoo, give that a shot, and see how it goes.

Health, Ammo, and bacon and eggs!
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 10th Mar 2011 15:19
thanks van b now i try command and isee the result
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 10th Mar 2011 15:31
only one problem : after i use "lock object on" when i set the position for the gun it disapperar
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Mar 2011 15:47
Ohh, you shouldn't position the gun after locking it - as when you lock it to the camera it will stay with the camera. Once it's locked, you can offset the gun by positioning it - like if you position the gun object at 0,0,5 - it would be closer to the camera, as movement with locked objects is in relation to the camera.

Health, Ammo, and bacon and eggs!
sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 10th Mar 2011 20:50
Also you may have to play with the size of the gun model.
renny

Life is not fair, so deal with it.
http://www.gusroundtable.com/

Login to post a reply

Server time is: 2026-07-15 09:05:11
Your offset time is: 2026-07-15 09:05:11