|
ENABLE_IMPACT doesn´t work
#284540
08/13/09 20:00
08/13/09 20:00
|
Joined: Jun 2009
Posts: 44 NRW,Germany
MoRRoW
OP
Newbie
|
OP
Newbie
Joined: Jun 2009
Posts: 44
NRW,Germany
|
Hey Guys I have a model with the following action attached: action ziela() {
my.ENABLE_IMPACT = ON; my.emask |= ENABLE_IMPACT; my.event = level_A(); my.lightrange = 700; ....... But the Entity doesn´t react when the player hits her. Further I get an "Unknown Parameter" Error for my.emask. I´m new to Lite-C and my script is an old C-Script from 3 years ago so I don´t understand the half of what I wrote in the past.If someone has an idea please answer.
If you are unable to learn new stuff,you have to learn to learn new stuff! A7 7.80 Commercial
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: MoRRoW]
#284546
08/13/09 21:00
08/13/09 21:00
|
Joined: May 2009
Posts: 137 Ohio, U.S.A.
PigHunter
Member
|
Member
Joined: May 2009
Posts: 137
Ohio, U.S.A.
|
my.ENABLE_IMPACT = ON;
Remove it.
my.event = level_A;
No parenthesis?
Make sure the function comes before the action in the script or define in the beginning of the script.
function level_A();
Last edited by PigHunter; 08/13/09 21:03.
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: PigHunter]
#284548
08/13/09 21:09
08/13/09 21:09
|
Joined: Jun 2009
Posts: 44 NRW,Germany
MoRRoW
OP
Newbie
|
OP
Newbie
Joined: Jun 2009
Posts: 44
NRW,Germany
|
The function level_A() is defined inanother script what i included before, so it is not unknown to the engine. But the other problem is with the my.emask parameter the whole crap won´t compile cause of Unknown Parameter.
If you are unable to learn new stuff,you have to learn to learn new stuff! A7 7.80 Commercial
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: MoRRoW]
#284563
08/13/09 22:37
08/13/09 22:37
|
Joined: May 2009
Posts: 137 Ohio, U.S.A.
PigHunter
Member
|
Member
Joined: May 2009
Posts: 137
Ohio, U.S.A.
|
Try:
set(my,ENABLE_IMPACT); my.emask |= ENABLE_IMPACT;
Last edited by PigHunter; 08/13/09 22:54.
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: PigHunter]
#284566
08/13/09 22:55
08/13/09 22:55
|
Joined: Jun 2009
Posts: 44 NRW,Germany
MoRRoW
OP
Newbie
|
OP
Newbie
Joined: Jun 2009
Posts: 44
NRW,Germany
|
Sry didn´t work. What do you think can it be that the error ocures because of 7.80 Beta? New error ocured after i´ve test your edited method: set(my,ENABLE_IMPACT); Bad or missing WDL Parameter unkown... and further my.emask Parameter unknown. I´m getting crazy!
Last edited by MoRRoW; 08/13/09 22:59.
If you are unable to learn new stuff,you have to learn to learn new stuff! A7 7.80 Commercial
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: PigHunter]
#284574
08/14/09 00:50
08/14/09 00:50
|
Joined: Jun 2009
Posts: 44 NRW,Germany
MoRRoW
OP
Newbie
|
OP
Newbie
Joined: Jun 2009
Posts: 44
NRW,Germany
|
Hey thanks for your help will try that tomorrow because here it is 03:00 o´clock in the middle of the night. I will reply tomorrow if it has worked or if it doesn´t. GN8 ... Tried but same error Okay at least I follow your advice with the replacement of C-Script code with Lite-C. But anyways thanks alot for your help.
Last edited by MoRRoW; 08/14/09 00:54.
If you are unable to learn new stuff,you have to learn to learn new stuff! A7 7.80 Commercial
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: MoRRoW]
#284584
08/14/09 03:47
08/14/09 03:47
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
TRIPLE check to make sure ALL the source-files (or included files) that you are using are all Lite-C files. (saved as *.C or sometimes *.H).
Also make sure there are NO *.WDL files with the same name as your "main" script. (preferably no *.WDL files at all)
You CANNOT mix c-script files and lite-c files. You are only able to use one or the other. This is an easy place to fall over when moving from c-script to lite-c.
Hope this helps.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: ENABLE_IMPACT doesn´t work
[Re: EvilSOB]
#284660
08/14/09 13:19
08/14/09 13:19
|
Joined: Jun 2009
Posts: 44 NRW,Germany
MoRRoW
OP
Newbie
|
OP
Newbie
Joined: Jun 2009
Posts: 44
NRW,Germany
|
Hey Evil The Case is that the script i´m talking about was working without any problem´s in A6 everything worked like i wanted. I had to stop development because of my job and now i switched to A7 Engine and wanted to continue but the old code didn´t work anymore I fixed much of the code except of that enable_impact thing.When i touch the entity with my player it just does nothing.Oh by the way I have a scan function on SPACE and when i hit SPACE at this position in the game the target function levelA starts.
If you are unable to learn new stuff,you have to learn to learn new stuff! A7 7.80 Commercial
|
|
|
|