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: Detecting whether a player is moving  (Read 2289 times)

0 Members and 1 Guest are viewing this topic.

Offline Dmitri

  • Members
  • *
Detecting whether a player is moving
« on: 16 Dec 2007, 01:01:44 »
Creating a PvP mission where I need to detect whether a player is moving, or stationary. For cueing foliage movement sounds. Any ideas? :)

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Detecting whether a player is moving
« Reply #1 on: 16 Dec 2007, 02:03:06 »
Code: [Select]
(speed player) > 0
« Last Edit: 16 Dec 2007, 02:06:50 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Dmitri

  • Members
  • *
Re: Detecting whether a player is moving
« Reply #2 on: 16 Dec 2007, 12:41:31 »
:D So obvious..never occurred to me to search the comref for speed. Thanks.