1 registered members (M_D),
1,501
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Engine = problem with scans?
#60505
12/13/05 14:40
12/13/05 14:40
|
Joined: Nov 2005
Posts: 62
Seriff
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2005
Posts: 62
|
Hi, i bought A6.22 some time ago. And now there's the A6.31 version... I tried to install it but i don't like to work with it... i dont know why i prefer the 6.22. Whats the diference between them? I have a scan script with events that doesnt work, and some shaders too... Its cuz of the A6.22?
Last edited by Seriff; 12/13/05 20:05.
|
|
|
Re: A6.22 and A6.31
[Re: Seriff]
#60506
12/13/05 16:57
12/13/05 16:57
|
Joined: Jun 2005
Posts: 184 Austria
HIAS
Member
|
Member
Joined: Jun 2005
Posts: 184
Austria
|
The complete future list can be found herebut the main future is that A6.31 now runs under directx 9.0c
|
|
|
Re: A6.22 and A6.31
[Re: Seriff]
#60508
12/13/05 19:25
12/13/05 19:25
|
Anonymous
Unregistered
|
Anonymous
Unregistered
|
You need to put the () next to the name of the function. Plus, any code you put in next to the // will be ignored by the compiler.
|
|
|
Re: A6.22 and A6.31
[Re: Seriff]
#60510
12/14/05 00:26
12/14/05 00:26
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
Quote:
action roller { PLAYER=me; player.enable_scan = on;// this makes sure the player can be scanned by [Walking script...] }
function jumpspringfunc() {player.enable_scan = on;
if ((EVENT_TYPE == EVENT_ENTITY)&&(YOU == PLAYER)) { result = vec_dist(my.x,player.x);
if(result <= 1) { phent_addcentralforce(PLAYER,vector(my.skill1*COS(my.pan),my.skill1*SIN(my.pan),my.skill1*TAN(my.tilt)))*time; } } }
action mola { my.event = jumpspringfunc(); temp.x = 120; temp.y = 120; temp.z = 300; scan_entity(my.x,temp); }
Ok, now its like this, but the same problem exists :S
Your mistake is in the function call at the top of your action (marked in red-orange). You need the () in there.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: A6.22 and A6.31
[Re: Seriff]
#60512
12/14/05 15:51
12/14/05 15:51
|
Joined: Sep 2003
Posts: 4,959 US
Grimber
Expert
|
Expert
Joined: Sep 2003
Posts: 4,959
US
|
you have 2 actions there but niether is set up right for event handling
one has an my.enable_ but no my.event =
the other action has a my.event= but no events enabled the player.enable_scan = onl in the fucntion is redundant as you already have it set in the action where you assign the player pointer in the first place
and no, you do not use () at the end of the my.event = function definition.
so how do you expect it to work?
it's not your edition, it's your scripting
Last edited by Grimber; 12/14/05 15:52.
|
|
|
Re: A6.22 and A6.31
[Re: Seriff]
#60513
12/14/05 16:34
12/14/05 16:34
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
Expert
|
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
When you call a function you have to have (), but when you make a function you don not, in fact unless you use paramaters then you shouldn't use them.
fox_func();
function fox_func { foxhound.cool = on;
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
|