So here is a specific example. This is from the Workshop 11 on pointers.
I'm playing around with the code & I want to define my own actions for the wizard models that were created with WED. How do I change the names of the actions that are defined in the script? or define new actions for the models? Those are my specific questions.
I want to rename the actions "wizard_with_pointer()" & "wizard_simple()"
#include <acknex.h>
#include <default.c>
ENTITY* wizard1;
ENTITY* wizard2;
function move_up()
{
wizard1.z += 5;
}
function move_down()
{
wizard1.z -= 5;
}
function main()
{
level_load ("work11.wmb");
on_u = move_up;
on_d = move_down;
}
action wizard_with_pointer()
{
wizard1 = my;
my.ambient = 100;
}
action wizard_simple()
{
wizard2 = my;
my.ambient = 100;
}