Gamestudio Links
Zorro Links
Newest Posts
Training with the R bridge does not work
by frutza. 11/19/25 22:32
ZorroGPT
by TipmyPip. 11/19/25 10:10
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Zorro 2.70
by jcl. 11/15/25 08:43
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 7,247 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entities&actions ? #175040
12/28/07 09:53
12/28/07 09:53
Joined: Dec 2007
Posts: 10
Z
Zxya Offline OP
Newbie
Zxya  Offline OP
Newbie
Z

Joined: Dec 2007
Posts: 10
Hi everyone,
i got a problem with entities.
This is what i done and the problem occured:

-I added a cube in wed, selected it , edit->hollow block.
-Placed the cbaba.mdl inside the cube.
-Saved it. test.wmp

-Opened sed wrote the following:
Code:
 STRING test = "test.wmb";
function main(){
level_load(test);
wait(2);

while(1){
wait(1);
}
}

action i_am_rotating(){
while(me!=NULL){
my.pan+=3;
wait(1);
}
}



-Saved it as script.wdl
-Gone back to wed. Attached the script.
-Attached the action to cbabe.
-Built the wmb file. Hit the run button.

and it just shows a little while and program terminates it self with a "ding" sound. No error messages or script compilation errors.

If i dont attach the action, it runs. This happens when entity have the action.

Last edited by Zxya; 12/28/07 09:54.
Re: entities&actions ? [Re: Zxya] #175041
12/28/07 15:19
12/28/07 15:19
Joined: Nov 2007
Posts: 58
austria
nsksleeper Offline
Junior Member
nsksleeper  Offline
Junior Member

Joined: Nov 2007
Posts: 58
austria
for what do you create a string?
you don't use it anywhere, and for my file the code doesn't make sense


visit www.nsk-austria.org and vote for sleeper by clansman of the year.

and also look at www.break.com/index/lightningstrikescar.html
Re: entities&actions ? [Re: nsksleeper] #175042
12/28/07 15:24
12/28/07 15:24
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
He does use it: In the level_load instruction.

@Zxya:
Actions are a special form of functions.
Unlike functions actions do not take any parameters and thus don't need the brackets behind the action name.
Have you tried this version:
Code:
 
STRING test = "test.wmb";

function main(){
level_load(test);
wait(2);

while(1){
wait(1);
}
}

action i_am_rotating
{
while(me!=NULL){
my.pan+=3;
wait(1);
}
}



Re: entities&actions ? [Re: Xarthor] #175043
01/02/08 15:23
01/02/08 15:23
Joined: Dec 2007
Posts: 10
Z
Zxya Offline OP
Newbie
Zxya  Offline OP
Newbie
Z

Joined: Dec 2007
Posts: 10
Thanks.


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