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,449 guests, and 6 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
Flags auch auf Modelle? #419237
03/08/13 08:04
03/08/13 08:04
Joined: Jun 2008
Posts: 156
B
Bastiuscha Offline OP
Member
Bastiuscha  Offline OP
Member
B

Joined: Jun 2008
Posts: 156
Hi,

kann man auf Modelle und Lights auch VISIBLE Flags setzen?
Ich möchte ein Modell sowie eine Lichtquelle zeitabhängig unsichtbar machen.
Wie könnte ich das realisieren?

Vielen Dank.

Re: Flags auch auf Modelle? [Re: Bastiuscha] #419239
03/08/13 08:08
03/08/13 08:08
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Code:
set (my,INVISIBLE);
reset( my, INVISIBLE);

..

set (my, FLAG1);
reset (my, FLAG1);
if (is(my,FLAG1)) do_something
if (!is(my,FLAG1)) do_something

..

ENTITY* the_light;
ENTITY* the_ent;
action TheLight(){
 the_light = me;
 the_light.lightrange = 200;
 ..
}
action TheEnt(){
 the_ent = me;
 ..
}

..

action / function(){
..
while (!the_ent) wait(1);
while (!the_light) wait(1);
var mytimevalue; //fex.
if (mytimevalue >= 100) { 
   reset (the_ent, VISIBLE); 
   reset (the_light, VISIBLE); //if visible model
   the_light.lightrange = 0;
   //reset(the_light, LIGHT);
..
}



edit: Also um eine Ent unsichtbar zu machen, nimmst Du INVISIBLE. Um das Licht aus zu machen, nimmste lightrange = 0.
mfg

Last edited by rayp; 03/08/13 08:17.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Flags auch auf Modelle? [Re: rayp] #419241
03/08/13 08:17
03/08/13 08:17
Joined: Jun 2008
Posts: 156
B
Bastiuscha Offline OP
Member
Bastiuscha  Offline OP
Member
B

Joined: Jun 2008
Posts: 156
Vielem Dank :-)

Re: Flags auch auf Modelle? [Re: Bastiuscha] #419242
03/08/13 08:17
03/08/13 08:17
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Aber gerne doch grin


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;

Moderated by  HeelX, rvL_eXile 

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