PDA

View Full Version : Barrells in Dink example



erikharrison
12-07-2008, 12:50 AM
In the inside map of the Dink example, if I break both the barrels, enter edit mode, remove the broken flag from one barrel, and hit okay in the prop editor, both barrels unbreak. Hitting F1 again, the breaking animation occurs for the barrel with the broken property set.

I've looked at the script to see if there was some bug with OnMap() and OnPostInit() but I'm not catching anything. is this a bug with the engine, a bug with the scripts, or is this expected behavior? Breaking the barrels and walking out and back into the building doesn't display this behavior.

Seth
12-07-2008, 01:58 AM
Thanks, fixed (will be in next build), sort of an engine bug where it was incorrectly thinking the barrel wanted to use a visual profile set and wanted to set its graphic to the right direction on its Init() automatically to help out. (which we didn't want in this case, but we do want in the case of say, the ducks)

Now it will correctly notice that a SetAnimByName() was used the init() and not try to update its image by facing.