OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Bulletsfire 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.
-
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. ;)
-
syntax: [vehiclename,100] exec "speeding.sqs"
100 is the limit, you can set as you wish
speeder.sqs:
_speeder = _this select 0
_limit = _this select 1
#traffipax
@ speed _speeder > _limit
hint "you are speeding"
@ speed _speeder < _limit
goto "traffipax"
exit
-
you can add this before line
goto "traffipax"
hint ""
-
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
-
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