Hey guys,is it possible to make the actor only collide with others with its head?example when only the main actor's head collide with enemies,it get destroyed.any help pls
Thanks for the quick reply!I tried that but sometime it works n sometime don't..I made an actor for the head position n when it collide with enemy,my main actor get destroyed by using a game Boolean,but sometime the enemies just kept moving to my main actor and crash with the main actor even though the enemies are already colliding with the head actor..which should cause the main actor destroyed in the first place..
You need to use logic to ensure the body is destroyed and has definately occured before destroying the head (assuming that is what you want). If the command, in the head actor, to destroy itself is at the same execution level as the game attribute boolean used to tell the body to destroy itself, the head may destroy itself before it gets to the command that sets the boolean leaving the body wandering about without a head. Sometimes that logic works but sometimes it doesn't (and for me more than often it doesn't). So you have to implemement a timer delay for the destroy self command or use a game attribute as a communication device between the head and body. Or something thereabouts.
Basically what it comes down to is behaviors in an actor at the same nested execution level (i.e. at the root level, or within the same timer, same rule, etc.) can run in pretty much any order. Typically it is top-down but that is not guaranteed. This came from a GS dev in another post.
Comments
or have a small invisible actor follow where the head is
http://gamesalad.com/wiki/how_tos:gsc_how_to_have_more_then_one_hit_points