Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, Ayumi), 773 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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
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 | 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