you're both right but in fact it doesn't work and I don't know why
My code is a bit complicated so to avoid error I've made one simplier to see is the program could make a simple action like if (entity.1<entity.2)
{Z+=5;}
but It didn't work when I change entity's position
maybe I need to update them, it's the reason i've decided to use vec but I didn't find the way to get the update
this is the simple code
action play1
{
while(1)
{
p1= me;
my.x+=2*key_force.x*time;
if (p1.x>p2.x)
{
my.z+=5*time;
}
wait(1);
}
}
action play2{
while(1)
{
p2=me;
my.x+=2*joy_force.x*time;wait(1);
}
}