Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, ozgur), 1,526 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
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,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
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 | 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