thats why you are such an more talented coder then me.
i nead the nice guys like ron and rich that have bin forced by an annoying and wacky swede to help out.
i dont know how much code that is neaded for your tree tipping effect but i have 2 gosubs.
something like this.
HitTree:
``Check Collision with trees
`-------------------------------
`Only check collision if tree is alive
IF TreeAlive(a) = 1
`COLLISION!
IF Distxz(Obj,Object Position X(a),Object Position Z(a)) < 50
`Kill tree
TreeAlive(a) = 0
ObjPosiX=Object Position X(a)/SQU#
ObjPosiz=Object Position z(a)/SQU#
`tell patfinding that an tree is fallen now walkable zone(mapandsearch)-------------
SetSearchMap(ObjPosiX,ObjPosiz,0)
rem update map array so it knows a deadtree is at (8,3)
map(ObjPosiX,ObjPosiz) = TREEDEAD
`Store position of hit
HitPosition#(a,0) = Object Position X(obj)
HitPosition#(a,1) = Object Position Y(obj)
HitPosition#(a,2) = Object Position Z(obj)
ENDIF
ENDIF
return
DeadTree:
IF TreeAngle#(a) < 1 then set object cull a,0
IF TreeAngle#(a) < 90
`Increase angle fallen
inc TreeAngle#(a),10*move#
`Find 90 degree offset of where tank hit tree
EZro_SetPos HitPosition#(a,0),HitPosition#(a,1),HitPosition#(a,2)
EZro_Orbit 0,Object Position X(a),Object Position Y(a),Object Position Z(a),Object Position X(a),Object Position Y(a)+10*move#,Object Position Z(a),-90
AxisX# = EZro_GetPosX()
AxisY# = EZro_GetPosY()
AxisZ# = EZro_GetPosZ()
`Orbit Tree around axis
EZro_SetEuler OBJECT ANGLE X(a),OBJECT ANGLE Y(a),OBJECT ANGLE Z(a)
EZro_SetPos Object Position X(a),Object Position Y(a),Object Position Z(a)
EZro_Vector AxisX#,AxisY#,AxisZ#,10*move#
EZro_FindEuler
`Position Object 100+a, EZro_GetPosX(), EZro_GetPosY(), EZro_GetPosZ()
Rotate Object a, EZro_GetEulerX(), EZro_GetEulerY(), EZro_GetEulerZ()
ENDIF
`HIDE FALLEN TREES
IF TreeAngle#(a) = 90
HIDE OBJECT a
ENDIF
return
i cant take that much credit of this code as its rons handy work.
i can only say that he gives good support to his products and an really nice guy.
and i must say you get alot more rotation power with ez rotate and its extremelly low cost.
my main recomendation to you for this plugin is mostly speed and the eaze for you to make separate turn maneouvers for each unit without having to use dummy objects.
i could delete about 150 dummy objects after getting ezrotate.
oops when i read wath i have typed so do i sound like an ez rotate commercial.
ron told me that he was going to put up the tree hitting code on the forums so they should be here somewhere-
cheers
and damit fallout this looks like an real contender,i yust want some running code to try out.