3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Please Help me.  (Read 197 times)

« on: March 15, 2014, 06:39:42 AM »
I Set my game enemies(Skinmesh) to Follow PathFinder. Than i want to the PathFinder Follow my Camera.(exactly i want to my enemies follow my camera).
is it possible?
« Reply #1 on: March 15, 2014, 08:49:33 AM »
just link the path to your cam, open the path's property sheet and set the cam to PARENT...


--Mike
« Reply #2 on: March 15, 2014, 10:02:37 AM »
it, doesn't work bro >:(
PathFinder do no not follow or move with my camera >:(
« Reply #3 on: March 15, 2014, 01:35:07 PM »
I guess you didn't something. Your enemy character have the script to walk foward?. Or your Character have linked the object PathFinder as Target?. If you dont do this it never will work ;)
See my web:
« Reply #4 on: March 15, 2014, 02:53:59 PM »
my version of the pathfinder object is different from yours... bro

mine is version 1.11... yours, judging from the screenshot is not...

maybe that's one reason why it is not...

what version of 3DRAD are you using...


--Mike
« Reply #5 on: March 15, 2014, 07:57:45 PM »
I guess you didn't something. Your enemy character have the script to walk foward?. Or your Character have linked the object PathFinder as Target?. If you dont do this it never will work ;)
1. No . I dont add any script. but the charecter follow the PathFinder.

2. Yes. I do it.

all things is work. Charecter Follow the PathFinder properly but the PathFinder Dont follow my camera. it still on it own place.
« Reply #6 on: March 15, 2014, 08:18:20 PM »
OOOOOPS!!!!  i got Path and PathFinder objects mixed up!!!
i read pathfinder and saw path...

sorry...  alzheimers setting in...

disregard what i said above...

--Mike
« Last Edit: March 15, 2014, 08:21:40 PM by Mike Hense »
« Reply #7 on: March 15, 2014, 08:34:53 PM »
OOOOOPS!!!!  i got Path and PathFinder objects mixed up!!!
i read pathfinder and saw path...

sorry...  alzheimers setting in...

disregard what i said above...

--Mike
It's ok bro :D
« Reply #8 on: March 15, 2014, 08:47:35 PM »
Problem Solved.
I'm found the Solution here: http://www.3drad.com/forum/index.php?topic=6972.0
« Reply #9 on: March 15, 2014, 10:33:56 PM »
yeah... that should get you going... once i got my signals straight and realized what you were talking about, your problem was pretty obvious...

like FJ said, you gotta add a small script that sets a constant walk forward command to the character object (and make sure that you uncheck all the controls but leave it working at start)...

then just link a sphere rigidbody to the character and set as SPHERE RB in the character properties... then set the character object to CHARACTER in the pathfinder properties... 

it'll keep walking to the star now... 
(that's your enemy... you could link a monster or walking soldier follow the RB and hide the RB)

add a cam1st person to be the runner... link it to the script and link the pathfinder.... then add some logic keep the pathfinder with the cam1st person and your pursuit thing is complete...

Code: [Select]
Vector3   loc ;


void Main()
{
   //          keep the character walking
   OUT_2=1;
   
   //          keep the pathfinder star with the cam1st person
   iObjectLocation(OBJ_22,loc);
   iObjectLocationSet(OBJ_44,loc);
 
}



--Mike
« Reply #10 on: March 16, 2014, 12:31:59 AM »
A lot of thanks bro.
Its works finely... ;D ;D
Pages: [1]