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: GetPos Command  (Read 918 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
GetPos Command
« on: 14 Nov 2005, 20:37:06 »
Hi, my question is about the getpos command. I'm familar with it but then again I'm not.

In the command referenec it says this for an example.

Code: [Select]
getPos player
That gives me an error if I type it into an init field of soldier. Not sure.

How do you get the soldier you want to get the other position of another unit then if that didn't work?

Thanks,
NightJay0044
Who's hyped for Arma4, long live Arma!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:GetPos Command
« Reply #1 on: 14 Nov 2005, 20:54:09 »
'getpos player' in a units init field doesn't really do anything.

It depends what exactly you want your unit to do with the player position.

[unitname] move getpos player

Would tell unitname to move to the players position.
Syntax not 100% guaranteed.   ;D


Planck
I know a little about a lot, and a lot about a little.

Offline 456820

  • Contributing Member
  • **
Re:GetPos Command
« Reply #2 on: 14 Nov 2005, 21:15:58 »
soldier1 domove getpos othersoldier

that will work
getpos player will just load into the game were the player is wouldnt do anything unless you tell it to

my above should work correctly

note - try with 'move' and 'domove' commands im not sure what the difference is but i think 'move' is used for entire groups

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re:GetPos Command
« Reply #3 on: 14 Nov 2005, 23:12:29 »
456820 & Planck~

     Thanks for your help guys. "456820" yours did work but planck your didn't. That clears that one up.

NightJay0044
Who's hyped for Arma4, long live Arma!

Offline Pilot

  • Contributing Member
  • **
Re:GetPos Command
« Reply #4 on: 14 Nov 2005, 23:19:22 »
Use domove for units and move for groups

-Pilot