Author Topic: Tank turret ChangeDatablock event errors  (Read 967 times)

I've made the Tank Turret spawnable and usable in events but one issue persists-- When you
onactivate->player->changedatablock->tank turret
it will crash when you activate it.

HOWEVER

when you
onplayertouch->player->changedatablock->tank turret
it works fine.

Any ideas on what the issue could be?

The tank turret isn't really designed to be a player type and doesn't work that well when made into one - the person controlling it moves around and can look up/down, but there has to be a 'rider' for it to fire. It can be quite unstable...

I know, but I've managed to get rid of all(that I know of) of the crashes except this one. What gives?

Also, it doesn't have a dying animation, and as a result, if you Self Delete, you crash.

Didn't ages back Badspot/Beta Tester said some thing about this? Or am I just having massive deja vu.

I think no one is getting the point...onPlayerTocuh lets this work but onActivate doesn't o.o

Maybe it's the "activate" animations that are messing it up - it's trying to play them but they don't exist...

Get all the mDts data and copy that then change all the threads to stuff for the tank.

I only exported the turret with a look animation which means its going to crash lots. Me and TheGeek have an idea in the pipeline for plantable stationary turrets so you might as well wait for those.

 :cookieMonster:
I got it all stable, In fact if you just open the tank.cs and look for two little // you can unblock the UI that lets you spawn the turret on its own.

What happens when you click?

I don't understand why people feel the need to take something nice like the Tank and hack it to death.  Make your own stuff, people.