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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
mouse_ent #115010
03/04/07 16:43
03/04/07 16:43
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline OP
Member
nipx  Offline OP
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Hi!

Im trying to use mouse_ent in c-lite. In c-script I have no problems, everything works fine.
In c-lite I get
Quote:

'mouse_ent' undeclared identifier




Well, Ive already tryed with "MOUSE_ENT", "MOUSE_ent" and "mouse_ENT", but I keep getting this error.

Does any of you have the same problem? Or is it a bug?

Hope you can help me.


thx nipx

Re: mouse_ent [Re: nipx] #115011
03/05/07 05:02
03/05/07 05:02
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
no but, if you look in the lite-c manual mouse_ent is only in c-script. sorry, i don't know a workaround.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: mouse_ent [Re: JibbSmart] #115012
03/05/07 06:25
03/05/07 06:25
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
For detecting the entity under the mouse, mouse events like EVENT_TOUCH are normally used.

I think there was no particular reason to abandon mouse_ent - we just thought no one needs it anymore. We'll implement mouse_ent again for lite-C in the next update.

Re: mouse_ent [Re: JibbSmart] #115013
03/05/07 12:04
03/05/07 12:04
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
Quote:

sorry, i don't know a workaround




can't you call c-script functions from within lite-c? then it should be no problem to write a function which simply returns mouse_ent.

Re: mouse_ent [Re: Joey] #115014
03/05/07 20:20
03/05/07 20:20
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline OP
Member
nipx  Offline OP
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Quote:

We'll implement mouse_ent again for lite-C in the next update.




Conitec knows whats good community support. absolutely great! Thank you very mutch.



Quote:

can't you call c-script functions from within lite-c?




right, I forgot about this That could work.
Anyway, when I call a c-script function in c-lite, does c-lite wait till the function returns the pointer?


thx nipx

Re: mouse_ent [Re: nipx] #115015
03/06/07 06:12
03/06/07 06:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can call lite-C functions from C-Script, but not vice_versa.

The mouse_ent is still there, but just as an internal pointer under a different name. The workaround would be to rename that pointer:

#define mouse_ent touched


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