Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,542 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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