Page 1 of 1

Setting weapon attack speed

Posted: Mon Dec 24, 2012 12:18 am
by thermalburn
Hi,

I have a really quick question; how do i set the 'Speed' variable for weapons? I looked through the asset definition reference and could not find the variable that allows me to set the attack speed. I'm using the clone object method.

thanks

Re: Setting weapon attack speed

Posted: Mon Dec 24, 2012 12:52 am
by Neikun
Hey, thermalburn. It should be located right here: http://www.grimrock.net/modding/asset-d ... reference/
Scroll down to items. You'll find this: coolDownTime: cool down time in seconds
so for example you could add the line,
coolDownTime: 3,

Re: Setting weapon attack speed

Posted: Mon Dec 24, 2012 2:01 am
by thermalburn
oh thank you so much, i cant believe i missed that.

However now i have another concern. This entire time, i was under the impression that a higher speed meant a less cooldown. Would you happen to know the formula as to how cooldown is related to speed?

Re: Setting weapon attack speed

Posted: Mon Dec 24, 2012 2:28 am
by Phitt
thermalburn wrote:oh thank you so much, i cant believe i missed that.

However now i have another concern. This entire time, i was under the impression that a higher speed meant a less cooldown. Would you happen to know the formula as to how cooldown is related to speed?
That's how it is. The lower the cooldown is, the higher the speed is. I don't know the exact formula, I always thought cooldown means seconds between attacks while speed means attacks per minute (so a cooldown of 3 would equal a speed of 20). But I didn't test it, so I could be wrong.

Re: Setting weapon attack speed

Posted: Mon Dec 24, 2012 3:54 am
by thermalburn
ah i see.

thanks a lot guys. you've all been very helpful