Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
script problem mit vec_rotate und create #83443
07/27/06 05:34
07/27/06 05:34
Joined: May 2002
Posts: 63
B
beginner0110 Offline OP
Junior Member
beginner0110  Offline OP
Junior Member
B

Joined: May 2002
Posts: 63
Hallo
hab noch ein altes script und in A5.5 werden fehler angezeigt, wenn ich das
Spiel laufen lassen wiell:

Code:
 

VAR Light_on;
ON_L set_light;

FUNCTION set_light()
{
IF (Light_on == 0)
{
Light_on = 1;

//CREATE <arrow.pcx>,CAMERA.POS,light_akt;
ent_CREATE <arrow.pcx>,CAMERA.POS,light_akt;
} ELSE { Light_on = 0;}
}

FUNCTION light_akt ()
{
MY.INVISIBLE = ON;
MY.PASSABLE = ON;
MY.LIGHTRED = 95;//jetzt gelber , nicht nur weiß
MY.LIGHTGREEN = 65;
MY.LIGHTBLUE = 50;
MY.LIGHTRANGE = 300;//default 300
WHILE (Light_on == 1)
{
My_Pos.X = 400;
My_Pos.Y = 0;
My_Pos.Z = 0;
VEC_ROTATE My_Pos,CAMERA.PAN;
VEC_ADD (My_Pos,CAMERA.POS);
LOOK NULL,CAMERA.POS,My_Pos;
IF (RESULT > 0) {
VEC_SET (My_Pos,TARGET);
temp.X = NORMAL.X * 10;
temp.Y = NORMAL.Y * 10;
temp.Z = NORMAL.Z * 10;
VEC_ADD (My_Pos,temp);
VEC_SET (MY_POS,My_Pos);

}
ELSE {VEC_SET (MY_POS,My_Pos);}
wait(1);
}
REMOVE ME;



fehlermeldungen dazu :

vec_rotate my pos camer pan
keyword unknown vec_rotate light_akt
und
ent_create light

Woran liegt dies ?

beginner

Re: script problem mit vec_rotate und create [Re: beginner0110] #83444
07/27/06 08:49
07/27/06 08:49
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
you need '(' and ')' when calling the functions.


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