Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by mistery. 12/05/26 12:48
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,469 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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