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
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 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
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 | 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