Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: QUICKIE -> Getposition question  (Read 903 times)

0 Members and 1 Guest are viewing this topic.

Offline Pr0ph3t

  • Members
  • *
QUICKIE -> Getposition question
« on: 21 Mar 2005, 03:57:55 »
To facilitate coordinate hunting during mission editing, I want a placed unit to echo its x,y coordinate location on the screen. any way to do this with a single line in the activation field?

thanks d00ds

Offline Roni

  • Members
  • *
  • Play the Game !
Re:QUICKIE -> Getposition question
« Reply #1 on: 21 Mar 2005, 05:44:22 »
once only -

hint format ["X = %1, Y = %2", getPos this select 0, getPos this select 1]


repeatedly -

Create script ping.sqs
Put this exec "ping.sqs" in init field of target unit.

;ping.sqs
#loop
hint format ["X = %1, Y = %2", getPos this select 0, getPos this select 1]
~10
goto "loop"

cheers



roni

Offline Woodpeckersam

  • Members
  • *
  • I'm a llama! ooh! Yeah!
Re:QUICKIE -> Getposition question
« Reply #2 on: 21 Mar 2005, 09:40:45 »
once only -

hint format ["X = %1, Y = %2", getPos this select 0, getPos this select 1]


repeatedly -

Create script ping.sqs
Put this exec "ping.sqs" in init field of target unit.

;ping.sqs
#loop
hint format ["X = %1, Y = %2", getPos this select 0, getPos this select 1]
~10
goto "loop"

cheers



roni

Hey dude, you dont need to make a script... just create a trigger, axis (both) 0. activated by radio charlie, radio bravo etc etc.. then just set the trigger to repeatedly and input the code in the field


hint format ["X = %1, Y = %2", getPos this select 0, getPos this select 1]


... in game, press 0,0,1 and can be done many timnes u want.

simple..
« Last Edit: 21 Mar 2005, 09:42:02 by Woodpeckersam »

Offline Pr0ph3t

  • Members
  • *
Re:QUICKIE -> Getposition question
« Reply #3 on: 21 Mar 2005, 13:34:53 »
Thanks fellas I'll let you know as soon as I test
 ;D

Offline Roni

  • Members
  • *
  • Play the Game !
Re:QUICKIE -> Getposition question
« Reply #4 on: 21 Mar 2005, 21:33:20 »
Yeah, I suppose you COULD do it that way, but my way is . . . ah forget it.   :)   :P