Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,238 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
create view-entity? #85661
08/12/06 13:43
08/12/06 13:43
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Hello,

is it possible to create view-entitys and give them an
action like normal entities?

I want to make 100 view-entities and I don’t want to do:
“entity ent_1{….} entity ent_2{….}...” 100 times!
I would even need to call each one of them in my
function “ent_1.x=…;ent_2.x=…; ...”

Can’t I just do something like:
“viewent_create(“line.mdl”,temp.x,move_line);”

Is there a function like that?

I want to make an effect on the screen. The entitys that
make up that effect are supposed to be at the same position
on the screen even when I am moving/tilting the camera.
So I think I need view-entitys. Or is there a way to do
that with normal enititys?

Last edited by Freddy; 08/12/06 13:46.
Re: create view-entity? [Re: Freddy_dup1] #85662
08/12/06 13:49
08/12/06 13:49
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
view entities are not level entities, they cannot be assigned an action per say. instead you referance the view entity by its definition name just as you would any level entity by pointer

i.e.

entity bigbob
{

}

function animate_bob
{
ent_animate(bigbob....
....
)

function movebob
{
bigbob.y += force_key.x;
bigbob.z += force_key.y;
}

and so on

there is a view entity create but you cannot use it via script ( untill c-Lite is released) it has to be used in a dll

Re: create view-entity? [Re: Grimber] #85663
08/12/06 14:04
08/12/06 14:04
Joined: Feb 2003
Posts: 211
Unna
F
Freddy_dup1 Offline OP
Member
Freddy_dup1  Offline OP
Member
F

Joined: Feb 2003
Posts: 211
Unna
Thank you.

Than I have to find another way to make the effect.
It would be verry useful to have a function
like: "viewent_create".

Last edited by Freddy; 08/12/06 14:05.
Re: create view-entity? [Re: Freddy_dup1] #85664
08/12/06 14:32
08/12/06 14:32
Joined: Sep 2003
Posts: 4,959
US
G
Grimber Offline
Expert
Grimber  Offline
Expert
G

Joined: Sep 2003
Posts: 4,959
US
sorry was off on a tangent thinking...

ent_createlayer

you just can;t use it for 'sky' entitys via script. view entitis it works


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