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 (), 1,176 guests, and 4 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
[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,133
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,133
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