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,633 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
Adding actions in WED ? #299656
11/25/09 20:07
11/25/09 20:07
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
I was trying to remember how to add user defined actions to a model in WED. Can Someone remind me of the work flow or point me to a tutorial please .. I just can't find anything

What I have tried:

1. create action in file called test.c
2. Use Map properties to associate with action file (test.c)
3. Use behavior panel to add action to model
4. Build/compile/run
5. model NOT running action ???????

Thank you

Re: Adding actions in WED ? [Re: dracula] #299657
11/25/09 20:13
11/25/09 20:13
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
Write a script, add an action, open WED and your level, "files/map properties" open your script, close the window, click on a Model, under "behavoir" you can choose an action from the script. This must work... else anything on the script isn't right.
Hope it helps wink


Hilf mir, dir zu helfen!
Re: Adding actions in WED ? [Re: hopfel] #299660
11/25/09 20:30
11/25/09 20:30
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Hi hopfel

I put the following test action into test.c and attached it as a behavior but it will not rotate the model ??

Could you test it for me as I am going MAD

Thank you

action spin() // this action is in a seperate file called test.c
{

while(1)
{
my.pan = my.pan +1;
wait(1);
}

}

Re: Adding actions in WED ? [Re: dracula] #299693
11/26/09 03:09
11/26/09 03:09
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
try

my.pan += 1;

I don't see how that will really help but it's better programming.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Adding actions in WED ? [Re: FoxHound] #299737
11/26/09 15:30
11/26/09 15:30
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
I don't see any fault, and if you can choose it in WED it should work smirk Did you try to run the game with SED?


Hilf mir, dir zu helfen!

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