Hi,
The concept is this: I am working on a script that, when the player comes into contact with a certain object, that object is deleted and one point is added to the score.
I have a script so far, that runs fine, but when the player comes into contact with the object, it isnt removed, and is still quite clearly visible. When I run the application, and press F11 twice, I can see that the 'boxes' touch, but the models/objects do not.
Please find below, the script so far:
function killAndScore(){
my.event = NULL;
set(my,PASSABLE|INVISIBLE);
score++;
wait(1);
ent_remove(me);
}
action applyToObject(){
my.emask |= EVENT_IMPACT;
my.event = killAndScore;
}
If you have any ideas, improvements, suggestions of better working code, it would be greatly appreciated.
PS: I think this has something to do with the Hull (f/n?) Can someone please shed some light on this, thanks.