Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: lite-c [Re: jermy] #157072
09/27/07 16:43
09/27/07 16:43
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Hmm,

Dieses ist, wie ich Vektoren bilde:

VECTOR* some_vector;
vec_zero (some_vector);

Verbrauch:

ent_create (wesen, some_vector, funktion);

oder:

ent_create (wesen, vector(some_vector.x,0,0), funktion);

ok?


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: lite-c [Re: oldschoolj] #157073
09/28/07 11:33
09/28/07 11:33
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Das ist ein Array von 3 Pointern:

VECTOR* move_vec[3]= {0,0,0};

Das ist ein Array von 3 vars:

var move_vec[3]={0,0,0};

Das ist ein initialisierter VECTOR Pointer:

VECTOR* move_vec= { x=10; y=20; z=30; }

Das sind drei voellig unterschiedliche Objekte, die Sie nicht durcheinanderbringen sollten. Ausnahme: Alle Engine-Funktionen akzeptieren auch ein Array von 3 vars anstelle eines VECTOR Pointers.

Re: lite-c [Re: jcl] #157074
09/28/07 12:23
09/28/07 12:23
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
cool I didn't know that you could predefine vectors like that . I'm such a newb


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: lite-c [Re: oldschoolj] #157075
09/28/07 12:35
09/28/07 12:35
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
Thanks for your help!
But theres still one question:
how can i set the path for the saved "Spielstände" or images?

Re: lite-c [Re: jermy] #157076
09/28/07 12:47
09/28/07 12:47
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline
Senior Member
oldschoolj  Offline
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
In the manual there is a section Lite-C Language > Syntax > C-script to Lite-C it talks about paths and all that good stuff in there.


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: lite-c [Re: oldschoolj] #157077
09/28/07 12:56
09/28/07 12:56
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
Dann benötige ich einen extra wdl-Skript für die savedir? Geht das geht nicht in lite-c?


Last edited by jermy; 09/28/07 13:46.
Re: lite-c [Re: jermy] #157078
09/28/07 17:48
09/28/07 17:48
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany

was heisst das? im handbuch habe ich nichts gefunden!

Re: lite-c [Re: jermy] #157079
09/29/07 09:30
09/29/07 09:30
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
Quote:


was heisst das? im handbuch habe ich nichts gefunden!



Code:
  
function operate()
{
temp.pan = 120;
temp.tilt = 120;
temp.z = 150;
scan_entity(camera.x,temp);
}



Re: lite-c [Re: jermy] #157080
10/01/07 22:57
10/01/07 22:57
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Have you defined your variable or entity "temp"?

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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