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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Miska), 755 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to hide a object? #228525
09/20/08 06:12
09/20/08 06:12
Joined: Sep 2008
Posts: 8
D
dgsj Offline OP
Newbie
dgsj  Offline OP
Newbie
D

Joined: Sep 2008
Posts: 8
Hi all
After i create a entity,how to hide it?
i use this code,but it doesn't work...
//
ENTITY* test;
test= ent_create ("armorknight.MDL", vector(200,-200,-230),NULL);

reset(test,VISIBLE);//<---can't hide it
//

tks

Re: how to hide a object? [Re: dgsj] #228534
09/20/08 09:18
09/20/08 09:18
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
What do you mean by 'hiding it'? Do you want to remove it, or do you want to make it invisible, or do you want, that the NPCs want to ignore it... wink

Re: how to hide a object? [Re: Pappenheimer] #228549
09/20/08 13:09
09/20/08 13:09
Joined: Aug 2008
Posts: 218
U.S.
GamerX Offline
Member
GamerX  Offline
Member

Joined: Aug 2008
Posts: 218
U.S.
test.flags = INVISIBLE; then to bring it back
test.flags = VISIBLE;

Last edited by GamerX; 09/20/08 13:10.

"You may never know what results come of your action, but if you do nothing there will be no result."
-Mahatma Gandhi
Re: how to hide a object? [Re: GamerX] #228703
09/21/08 19:25
09/21/08 19:25
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
set(test, INVISIBLE);

use wait(1); after spawning it


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