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 (Akow, SBGuy), 1,423 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Visible / Invisible #238871
11/30/08 21:19
11/30/08 21:19
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
HiHo


I want to turn this code into lite-c:

c-script:
Quote:

action door_schalter
{
my.enable_scan = on;
my.event = scan_event;
}


and got this:

lite-c:
Quote:

action door_schalter()
{
set(my,ENABLE_SCAN);
my.event = EVENT_SCAN;
}


The problem now is, the door get invisible.. in c-script, it worked.. it just worked fine.. but now the door get invisible smirk

if i take the door_schalter action out of the object in MED, the door is there if i run.. but if i do the door_schalter into the object, the door gets invisible smirk


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Visible / Invisible [Re: flutschi] #238875
11/30/08 21:27
11/30/08 21:27
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
The set() makro is used for flags, not for event types.
Use the emask instead:

Code:
function scan_event()
{
  if(EVENT_TYPE == EVENT_SCAN)
  {
     ..
  }
}

action door_schalter()
{
  my.emask |= (ENABLE_SCAN);
  my.event = scan_event;
}


Re: Visible / Invisible [Re: Xarthor] #238893
12/01/08 00:55
12/01/08 00:55
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
thx, i try it out!


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875

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