2 registered members (AndrewAMD, 1 invisible),
1,395
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Entity Panel
#252916
02/21/09 12:26
02/21/09 12:26
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
Hi, the manual says me i can with
ENTITY* shotgun_onscreen =
{
type = "shotgun.mdl";
flags = SHOW;// visible on screen from the start
view = camera; // same camera parameters as the default view
}
let the player see a model. But i have used it with x,y,z and i cannot see it. Whats wrong?
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
Re: Entity Panel
[Re: HeelX]
#252919
02/21/09 13:12
02/21/09 13:12
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
But i don't need to create it first with "ent_create"? I don't have placed the model in maps.
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
Re: Entity Panel
[Re: Meerkat]
#252927
02/21/09 13:43
02/21/09 13:43
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
same problem at my game.. Created an entity Heart, that i want to show as HP Stat in my HUD ( animated ) But the Entity is not shown ( changed x,y to many things.. but it is not shown )..
//=================================================================================================================================
// //
// DAS HUD-SCRIPT //
// ^^^^^^^^^^^^^^ //
// //
//=================================================================================================================================
ENTITY* hud_ent_heart =
{
type = "Herz.mdl";
flags = SHOW;
view = camera;
x = 0;
y = 1000;
z = 0;
}
//=================================================================================================================================
// //
// FUNKTIONEN //
// """""""""" //
// //
//=================================================================================================================================
//=================================================================================================================================
// //
// AKTIONEN //
// """""""" //
// //
//=================================================================================================================================
function hud_update()
{
while(1)
{
wait(1);
}
}
i use y = 100, because camera.pan is 90...
Last edited by Espér; 02/21/09 13:46.
|
|
|
Re: Entity Panel
[Re: Espér]
#252933
02/21/09 14:58
02/21/09 14:58
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
Doesn't have anyone a solving?
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
Re: Entity Panel
[Re: Meerkat]
#252938
02/21/09 15:48
02/21/09 15:48
|
Joined: Jul 2002
Posts: 4,436 Germany, Luebeck
Xarthor
Expert
|
Expert
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
|
The x,y,z are relativ to the center of the screen and have nothing to do with the camera's rotation or position. So y = 1000; might be out of your screen borders. Try x=100; y=0; z=0; and play test with theses values Remember: x: distance from the camera (depth) y: right, left (negativ: right, positiv: left) z: up, down
edit: If you want to be able to see it from the beginning you need to set: flags2 = SHOW;
Last edited by Xarthor; 02/21/09 15:50.
|
|
|
Re: Entity Panel
[Re: Espér]
#252973
02/21/09 21:35
02/21/09 21:35
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
Aaaaahhhhh! I lost slowly my fun on it. There must be some wrong in my code. Is it true, if i load a level the view entity goes lost? I think of it. My Code is
ENTITY* Uhr_ent
{
type = "TUT.mdl";
view = camera;
flags2 = SHOW;
x = 100;
y = 0;
z = 0;
}
I have played with the X,Y,Z Coordinates, but i don't see my model.
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
Re: Entity Panel
[Re: Meerkat]
#252975
02/21/09 21:53
02/21/09 21:53
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
Ok, it is fixed. My files was not writable. -.-
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
|