0 registered members (),
18,561
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
event in C-Lite (Still need Help)
#122737
04/10/07 15:30
04/10/07 15:30
|
Joined: Sep 2006
Posts: 128 Sweden
Tiinusen
OP
Member
|
OP
Member
Joined: Sep 2006
Posts: 128
Sweden
|
Im used to work with events in C-Script. now i have started to code C-Lite. and what I see. this code wont work. I have read the Migration Guide but i didnt find any useful information there to anserw my question. Do you got any suggestion? Code:
function trigger_event { if (event_type == EVENT_TRIGGER) { ent_playsound(me,whamm,50); } // etc. ... } action door { ... my.trigger_range = 100; my.ENABLE_TRIGGER = ON; my.event = trigger_event; ... }
Thanks in forehand
Last edited by Tiinusen; 04/10/07 15:52.
Where is my manual? i think i lost it. i have been searching everywere. ohh there it is F1
I'm 17 years old, with 4 years of programing
I can programming a lot of languages check my
Bio out,
|
|
|
Re: event in C-Lite
[Re: TWO]
#122739
04/10/07 15:41
04/10/07 15:41
|
Joined: Sep 2006
Posts: 128 Sweden
Tiinusen
OP
Member
|
OP
Member
Joined: Sep 2006
Posts: 128
Sweden
|
thanks. but the second question i cant solve. i cannot use.
my.trigger_range = 100; my.ENABLE_TRIGGER = ON; my.event = trigger_event;
explain why i get error
Where is my manual? i think i lost it. i have been searching everywere. ohh there it is F1
I'm 17 years old, with 4 years of programing
I can programming a lot of languages check my
Bio out,
|
|
|
Re: event in C-Lite
[Re: TWO]
#122741
04/10/07 16:00
04/10/07 16:00
|
Joined: Sep 2006
Posts: 128 Sweden
Tiinusen
OP
Member
|
OP
Member
Joined: Sep 2006
Posts: 128
Sweden
|
ok, i get error in my.trigger_range = 100;
Where is my manual? i think i lost it. i have been searching everywere. ohh there it is F1
I'm 17 years old, with 4 years of programing
I can programming a lot of languages check my
Bio out,
|
|
|
Re: event in C-Lite
[Re: TWO]
#122743
04/10/07 16:28
04/10/07 16:28
|
Joined: Sep 2006
Posts: 128 Sweden
Tiinusen
OP
Member
|
OP
Member
Joined: Sep 2006
Posts: 128
Sweden
|
well thank you. that solved the problem. one more question how do solve my.enable_impact = ON; and other different event types? im going to use some different types of events. so tell me how to make them work. because i get error when i uses my.enable_impact = ON; is there something thats changed from C-Script to C-Lite?
Where is my manual? i think i lost it. i have been searching everywere. ohh there it is F1
I'm 17 years old, with 4 years of programing
I can programming a lot of languages check my
Bio out,
|
|
|
Re: event in C-Lite
[Re: TWO]
#122745
04/10/07 16:37
04/10/07 16:37
|
Joined: Sep 2006
Posts: 128 Sweden
Tiinusen
OP
Member
|
OP
Member
Joined: Sep 2006
Posts: 128
Sweden
|
thanks that explained all my questions. Thanks for your help Bloodline. its good there is people like you out there to anserw to people like me's anoying questions 
Where is my manual? i think i lost it. i have been searching everywere. ohh there it is F1
I'm 17 years old, with 4 years of programing
I can programming a lot of languages check my
Bio out,
|
|
|
|