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