sry for going a bit offtopic here DLively;
but action assignment to entities is currently not supported
, easy but not perfect solution; use a skill for giving entities an ID number / action number that people can use in their script to give the enitity a new function. It's not the nicest solution but it does give the advantage of having parameters for entity 'actions'. And having an ID skill is always helpfull so the skill does not go to waste
.
example:
#define ID skill20
function action_player()
{
...
}
action entity_initaction() //entities placed in editor get this action
{
//set new action
if (my.ID == 1) action_player();
//remove old one
return;
}