Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,631 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animate view entities can it be done? #180521
01/28/08 19:01
01/28/08 19:01
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline OP
Serious User
D3D  Offline OP
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Have created a demo login. The player can select his/her team red/blue and depending on a number will show a certain view entity. Display the entity is no problem, but can I also animate view entities? I mean just rotate the model.


smile
Re: Animate view entities can it be done? [Re: D3D] #180522
01/28/08 19:09
01/28/08 19:09
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
of, just do it as you would animate any other entity :]

Code:
while(1)
{
nameofscreenent.pan += 5*time_step;
wait(1);
}



Re: Animate view entities can it be done? [Re: Scorpion] #180523
01/28/08 22:42
01/28/08 22:42
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline OP
Serious User
D3D  Offline OP
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Ok I tried and it lockup the engine. With ent_create you can pass a function with the entity, but not with view entities? The function below is just to test if it's working or not.

Code:
ENTITY* avatar_onscreen =
{
type = "default.mdl";
layer = 20;
flags2 = VISIBLE; // visible on screen from the start
flags = VISIBLE; client_id = camera; // same camera parameters as the default view
x = 100; // place 100 quants ahead of the view
y = -45; // 50 to the right
z = 0; // and center vertically
}

function xyz()
{
if(value==88)
{
// number 88 = blueteam
ent_morph(avatar_onscreen,"blueteam.mdl");

while(1)
{
avatar_onscreen.pan += 5*time_step;
}
wait(1);
}
}




smile

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

Gamestudio download | 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