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
3 registered members (Dico, AndrewAMD, TipmyPip), 16,874 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
[WED] Actions in additional script-files #157167
09/27/07 12:10
09/27/07 12:10
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
Hi.

When i add an action in an additional script-file, doesn't matter if *.c or *.wdl, (included by the level-script) those actions do not appear in the entity action selection list.

The script-file is shown in the ressource-tab of WED but the action is missing.

An example:

bullet_physics.c (main level script)
Code:
...

//////////////////////////////
// Project-specific includes
//////////////////////////////
#include "help.wdl"
#include "variables.wdl"
#include "envoirement.wdl"

...



envoirement.wdl (for the actions)
Code:
...

// text: Used for barrels
// image: barrel.pcx
// section: Physics
// Flag1: Physics 1
// help: Enables the physics-engine for this object
// Skill1: Weight 5
// help: Sets a weight for the object (f.e. filled and unfilled barrels)
action pFass()
{
if is(my,FLAG1)
{
phent_settype (me, PH_RIGID, PH_BOX);
phent_setmass (me, my.skill1, PH_BOX);
phent_setfriction (me, 100);
phent_setdamping (me, 40, 40);
phent_setelasticity (me, 0, 0);
}

my.emask = ENABLE_SHOOT;
my.event = shoot_event;
}

...



Lite-C Free-Edition V1.05.5
WED Version unknown -> it's from the last A6 Commercial update

Original post: http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/787716/an/0/page/0#Post787716

Re: [WED] Actions in additional script-files [Re: deleRium] #157168
09/27/07 14:23
09/27/07 14:23
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I guess you can't see actions in WED because there is no WED in this version.

Re: [WED] Actions in additional script-files [Re: jcl] #157169
09/27/07 15:43
09/27/07 15:43
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
I'm using the WED from my A6 Com to create Levels ...

It's WED version 6.751

Re: [WED] Actions in additional script-files [Re: deleRium] #157170
09/27/07 19:23
09/27/07 19:23
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
Ok, with WED V6.835 (from A7 Trial) it works!


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