3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: FPS Movement?
[Re: jeffmorris]
#329664
06/21/10 19:44
06/21/10 19:44
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Then attach a camera to the warlord. Jibb EDIT: Yes, but at least you showed him how to do it, Widi
Last edited by JulzMighty; 06/21/10 19:57.
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: FPS Movement?
[Re: jeffmorris]
#329666
06/21/10 19:49
06/21/10 19:49
|
Joined: Aug 2007
Posts: 1,922 Schweiz
Widi
Serious User
|
Serious User
Joined: Aug 2007
Posts: 1,922
Schweiz
|
replace following code:
function camera_follow(ENTITY* ent)
{
while(1) {
vec_set(camera.x,vector(-150,10,25));
vec_rotate(camera.x,ent.pan);
vec_add(camera.x,ent.x);
vec_set(camera.pan,vector(ent.pan,-10,0));
wait(1);
}
}
with:
function camera_follow(ENTITY* ent)
{
while(1) {
vec_set(camera.x,ent.x);
vec_set(camera.pan,ent.pan);
wait(1);
}
}
That set the camera at the players pos. EDIT: Julz, you was faster
Last edited by Widi; 06/21/10 19:50.
|
|
|
|