Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,395 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Entity Panel #252916
02/21/09 12:26
02/21/09 12:26
Joined: Apr 2006
Posts: 273
Germany, NRW
Meerkat Offline OP
Member
Meerkat  Offline OP
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Hi,

the manual says me i can with

Code:
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? frown


http://www.gpi-studios.com

OS: 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] #252917
02/21/09 12:37
02/21/09 12:37
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Try x=1000. If you keep (x,y,z) = (0,0,0), the model is always inside the camera!

Re: Entity Panel [Re: HeelX] #252919
02/21/09 13:12
02/21/09 13:12
Joined: Apr 2006
Posts: 273
Germany, NRW
Meerkat Offline OP
Member
Meerkat  Offline 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.com

OS: 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] #252920
02/21/09 13:14
02/21/09 13:14
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
No you neither need to create it using ent_create nor place it in your level.
What you are doing here is creating a VIEW ENTITY that "lives" on the screen and thus has nothing to do with your level.

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 Offline
Expert
Espér  Offline
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 )..

Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                     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.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline OP
Member
Meerkat  Offline OP
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Doesn't have anyone a solving?


http://www.gpi-studios.com

OS: 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 Offline
Expert
Xarthor  Offline
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: Xarthor] #252969
02/21/09 21:06
02/21/09 21:06
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
hey.. works great..

THANK YOU ^^


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
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 Offline OP
Member
Meerkat  Offline 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
Code:
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. frown


http://www.gpi-studios.com

OS: 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 Offline OP
Member
Meerkat  Offline OP
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Ok, it is fixed. My files was not writable. -.-


http://www.gpi-studios.com

OS: 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
Page 1 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1