Two problems …
First one sounds like a classic question yet I didnt find the answer by searching the forum :
I have a tank (jagdpanther), going along his path under certain conditions, it has his body, tracks & turret, everything works fine except for the mounted MG42.
The mg is attached at the right position on the tank and moves with it, but players cant use/enter it.
I’ve read something in the forum about the player not being able to use the mounted mg is the tank is ‘dead’. But I dont know how the game knows if the tank is dead or not (btw this tank is NOT damageable/repairable). Ive trie alertentity in the tank spawn but this doesnt seemed to has any effect. So … how to set the tank ‘alive’ so i can use the mg ?
[GLOBALACCUM ISSUE SOLVED]
[i]Second question, this sounds like a bug :
I have a globalaccum (globalaccum 8 to be precise) to verify the state of a tank barrier.
The initial value is 1 (for destroyed) and will be 0 if the tank barrier is built.
If the barrier has not been built, the tank runs fine. If the barrier has been built, the tank stops. But heres come somthing unexpected :
If the barrier is not built, but the axis (axis are escorting the tank) build their command post, when the tank comes to the barrier it will stop (on globalaccum conditions) altough its not here.
So I’ve checked everything I could think off and here is the report :
- the “globalaccum 8” (state of the barrier) is only used for this barrier stuff.
- It is set to 1 at game_manager spawn and on barrier build final event, and set to 0 when on the barrier death event. It is never used elsewhere
- The commandpost scripts doesnt use any accum/globalaccum
- The commandpost entites have nothing that could cause interferences with the barrier constructible (targetnames, scriptnames, track …)
- Checking with script (globalaccum 8 trigger_if_equal), before the command post is built, the globalaccum 8 is correctly set to 0 or 1 depending if the barrier has been built. Once the command post is done, the same check will not work (neither trigger_if_equal 1 or 2 will trigger anything), wich sounds like globalaccum 8 doesnt exists anymore / is Null.
So … how come doing something apparently totally unrelated to globalaccum 8 can have an influence on it ? It is still possible (and most probable actually) that I messed up somewhere in my checks, and I will check again, but Ive been fighting this for quite some time now so I tought about asking here …[/i]
Solved : The world of computers and scripting is mysthical. One minute you have an incomrpehensible bug and you write about it, the next minute the bug has just vanished. Oh well, Im used to it now. I just wish it did earlier @_@ … and that it wont come back, of course.
