I'm looking for a way to figure out if something has been selected in this space map. I've attached some pictures and the map for you to see.
If it helps, I already have the xyz positions of all the 'objects' in variables. I just need a way to see what the mouse clicked using a 'traceline without units' I think.
Things I've looked at or tried:
-Tracelines which use units but I do not use units. I use actors with models instead.
-Creating units at the position of things and using the trigger event unit selected, but the units themselves don't seem to get to the correct position.
-Messing with the actors events to return some kind of response to mouse clicks but it's beyond me.
PointOffsetTowardsPoint3DOptions:FunctionReturnType:PointParametersPointA=NoPoint<Point>PointB=NoPoint<Point>Distance=0.0<Real>GrammarText:PointOffsetTowardsPoint3D(PointA,PointB,Distance)HintText:(None)CustomScriptCodeLocalVariablesL.Point=NoPoint<Point>L.A=0.0<Real>L.L=0.0<Real>L.Q=0.0<Real>L.X=0.0<Real>L.Y=0.0<Real>L.Z=0.0<Real>Actions-------youneedaandqangels.lis2ddistance.ais2dangle,andqistheanglebetweenvector(fromsourcetotarget)andthesurface-------a=atan2(dx,dy)-------l=sqrt(dx^2,dy^2)-------q=atan2(l,dz)-------togetdx,dy,anddzback,youusethese:-------x=r*cos(q)*cos(a)-------y=r*cos(q)*sin(a)-------z=r*sin(q)-------r=128foryou-------or(ifyoumeantl=128),r=128*cos(q)-------ThisfunctionisfromtheGAx3modwhichsubtractsonepointformother.Variable-SetL.Point=(PointA-PointB)Variable-SetL.A=(Atan2((XofL.Point),(YofL.Point)))-------TheSquarerootfunctioncouldn't take two number (like in your instructions) but I had to guess what to do. Variable - Set L.L = (Square root((((X of L.Point) ^ 2.0) + ((Y of L.Point) ^ 2.0)))) Variable - Set L.Q = (Atan2(L.L, (Height of L.Point))) Variable - Set L.X = (* (Distance, (Cos(L.Q)), (Cos(L.A)))) Variable - Set L.Y = (* (Distance, (Cos(L.Q)), (Sin(L.A)))) Variable - Set L.Z = (* (Distance, (Sin(L.Q)))) General - Return (Point(L.X, L.Y, L.Z))
I like using the editor but I never published anything and I have some random things I've made but never used. I thought to myself that having a forum and posting what I'm doing may help me. It has a bit.
The endgame is to make a open rpg map the way i imagine it. Which tends to be hard because I don't like making liner rpgs. I want a map with allows the player to do almost anything they want. Random worlds to explore, working on a complex quest system (go-to, riddles, puzzles, protect, defend, local level, map level, world level), complex character system (you can craft your own equipment and magic using components), etc.
0
I'm looking for a way to figure out if something has been selected in this space map. I've attached some pictures and the map for you to see.
If it helps, I already have the xyz positions of all the 'objects' in variables. I just need a way to see what the mouse clicked using a 'traceline without units' I think.
Things I've looked at or tried:
-Tracelines which use units but I do not use units. I use actors with models instead.
-Creating units at the position of things and using the trigger event unit selected, but the units themselves don't seem to get to the correct position.
-Messing with the actors events to return some kind of response to mouse clicks but it's beyond me.
0
It's been a long time but I've dealt with terrain deformers if you have any more questions.
0
Solved.
0
0
@Hockleberry: Go actions
Repeat forever:
wait 0.1
IF - unit is in region or distance between units is 0.5
THEN - Stuffs
ELSE
0
Uh....
condition - units current order = move action - stuffs
condition - unit is idle action - stuffs
0
I don't get it.
So, multiple rooms on a map separated by things like cliffs.
A player can control multiple units in different rooms.
And the camera needs to jump to the different units but it would go through the cliffs, which is bad.
Correct?
0
Check that your video settings are on high.
0
One would assume the whole game is copyrighted.
0
I like the read. Informative.
0
Tried terrain deformations before and it doesn't end well.
for top-down view its ok but not for 1st/3rd view.
0
I like using the editor but I never published anything and I have some random things I've made but never used. I thought to myself that having a forum and posting what I'm doing may help me. It has a bit.
The endgame is to make a open rpg map the way i imagine it. Which tends to be hard because I don't like making liner rpgs. I want a map with allows the player to do almost anything they want. Random worlds to explore, working on a complex quest system (go-to, riddles, puzzles, protect, defend, local level, map level, world level), complex character system (you can craft your own equipment and magic using components), etc.
0
Welcome to the world of debugging!
Make a init trigger opening the debug window.
Add a lot of debug messages (with conversions) to see whats running and if the values are correct.
have fun.... mahaha
0
Update
-Added simple sky objects, like sun, moon, planets, etc.
-Reorganized code for easier viewing.
-Changed the random map generator trigger to use GUI variables. Much easier to add new things now.
0
Update.