Help please. I am having trouble changing local variables on clones. On a collision event of one actor I have the following non-functioning code(it doesn't return an error when I OK it in the script editor).
- Code: Select all
int n;
Actor *actors;
actors = getAllActorsInCollision("Event Actor", &n);
if(actors)
{
int i;
for(i = 0; i < n; i++)
{
actors[i].variable1=5;
}}
how come variable1 will not change?