The problem you are having is that the CreateObject function returns an
object.
The action functions are functions that do not return anything (
void)
So what you are doing is entering a
object as a paramater that is asking for a
actionthe way around this is to create a wrapper around the object to turn it into an action/void returning function.
At the top of your script before the void main place this.
action VoidObject(
object oObject) {}
you will then be able to rewrite your line like this.
AssignCommand(oObject, VoidObject(CreateObject(OBJECT_TYPE_CREATURE, "eots_fish2", lRE)));
I do not think this is your problem however. You should not have to assign the command to an object to get it to work.
It would be best if you posted you script.
Modifié par Lightfoot8, 15 septembre 2010 - 03:55 .