Lost + found

Post your scripting questions / solutions here

Moderator: Moderators

Locked
Jere
Private
Posts: 7
Joined: Tue Dec 20, 2011 2:51 pm

Post by Jere »

Thanks JV!

After manny attempts I managed to do it

while(1){

....

$bodycam1 rotateto ( angles_pointat $targetcamera1 $targetcamera1 $bodycam1)
$bodycam2 rotateto ( (angles_pointat $targetcamera2 $targetcamera2 $bodycam2) - ( 0 90 0) )

$bodycam1 move
$bodycam2 move

......
}


I had to substract 90 degrees in the second camera because it rotated wrong (wrong origin?). Thanks again JV!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Awesome, well done! :). I'm guessing bodycam2 is facing a different direction in the .map file?
Image
Jere
Private
Posts: 7
Joined: Tue Dec 20, 2011 2:51 pm

Post by Jere »

yes my friend!
Locked