Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, Quad), 5,104 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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