Hammerwatch Forum

Custom mapping and Mods => Editor Discussion => Topic started by: Dai Tou Zai on November 23, 2014, 07:27:45 PM

Title: pushable boxes?
Post by: Dai Tou Zai on November 23, 2014, 07:27:45 PM
Without using triggers can you make a pushable box just by using the XML coding?
Title: Re: pushable boxes?
Post by: dingoZero on November 23, 2014, 08:44:30 PM
You have to make it a creature and use a toggle invulnerability script.
Title: Re: pushable boxes?
Post by: Dai Tou Zai on November 23, 2014, 09:09:32 PM
You have to make it a creature and use a toggle invulnerability script.
im guessing have it set as stationary too?
Title: Re: pushable boxes?
Post by: Phantom on November 24, 2014, 07:13:41 AM
I think you might get an idea if you check out the Requiem for Hammerwatch campaign, there's some NPCs that are pushable in the beginning area.
Title: Re: pushable boxes?
Post by: dingoZero on November 24, 2014, 08:48:18 PM
im guessing have it set as stationary too?

No movement, no attacks.
Title: Re: pushable boxes?
Post by: prophet on November 25, 2014, 01:12:15 PM
No need for any of that, just use <collision static="false"> and anything will be pushable.
Title: Re: pushable boxes?
Post by: dingoZero on November 29, 2014, 06:26:33 PM
No need for any of that, just use <collision static="false"> and anything will be pushable.

Right, but then you can't do other cool things with the move ai script when you want to.
Title: Re: pushable boxes?
Post by: Dai Tou Zai on November 29, 2014, 07:39:54 PM
Thanks guys, anybody know if its possible to make a collision that only effects the boxes though?
Title: Re: pushable boxes?
Post by: dingoZero on November 30, 2014, 01:25:02 AM
As far as I know, no.
Title: Re: pushable boxes?
Post by: Heretic on December 07, 2014, 07:55:42 AM
Something to note with this pushing - it doesn't mirror on all clients. So if its single player, push mechanics are fine, but for multiplayer or coop it won't mirror on the other players' screens. Myran knows how to explain it better
Title: Re: pushable boxes?
Post by: Hipshot on December 07, 2014, 11:44:58 AM
Yea, also strange bugs can occur, you can see it when you play the desert campaign, that sometimes some coins get stuck for the server but not the client and vise versa.