Home   Help Search Login Register  

Author Topic: read speed script  (Read 609 times)

0 Members and 1 Guest are viewing this topic.

Bulletsfire

  • Guest
read speed script
« on: 12 Jan 2004, 23:18:13 »
is there a current script or what do i need to put it to make a script to read the speed on a vehicle and make it say you are speeding.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:read speed script
« Reply #1 on: 13 Jan 2004, 00:03:26 »
speed obj

Operand types:
obj: Object
Type of returned value:
Number
Description:
Object speed (in km/h)

Example:
speed player



Always[/i] look up the command reference before you post a question.  ;)
Plenty of reviewed ArmA missions for you to play

gundernak

  • Guest
Re:read speed script
« Reply #2 on: 13 Jan 2004, 00:16:39 »
syntax: [vehiclename,100] exec "speeding.sqs"

100 is the limit, you can set as you wish

speeder.sqs:
Code: [Select]
_speeder = _this select 0
_limit = _this select 1

#traffipax

@ speed _speeder > _limit

hint "you are speeding"

@ speed _speeder < _limit

goto "traffipax"

exit

gundernak

  • Guest
Re:read speed script
« Reply #3 on: 13 Jan 2004, 00:39:34 »
you can add this before line
Code: [Select]
goto "traffipax"
Code: [Select]
hint ""

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:read speed script
« Reply #4 on: 13 Jan 2004, 08:01:14 »
You need a delay in that script or you'll end up with a friggn hint-pinging nightmare. :o

:beat: *Gets Shot* :beat:

EDIT: Whooop, nevermind. Thought it was ? not @ ;D
« Last Edit: 13 Jan 2004, 08:01:47 by The real Armstrong »

Bulletsfire

  • Guest
Re:read speed script
« Reply #5 on: 14 Jan 2004, 04:42:58 »
ok, now, i got that working. im not very good at scripting but i can i make it display you are speeding to the person and say that "speeders name here" is speeding to only certain other players? ;D