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
1 registered members (TipmyPip), 18,513 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
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