Home   Help Search Login Register  

Author Topic: flying rules  (Read 516 times)

0 Members and 1 Guest are viewing this topic.

The Helipilot

  • Guest
flying rules
« on: 13 Apr 2004, 23:46:06 »
Hello !
I'm working on a script wich will modified your score depending of your way of flying helicopters. But of course it doesn't work  :'( :'(
What I need is a script who will check your speed and your altitude and remove points if procedures are not respected, same if you damaged your chopper during landing. It should also addamage in case of overspeed etc etc...
Can someone tell me if it's possible? if it was done ??

Thanks a lot !

DBR_ONIX

  • Guest
Re:flying rules
« Reply #1 on: 14 Apr 2004, 21:12:02 »
For the asl/speed thing
Get the shoppers speed and altitude (Z axis for alt, and use the velocity command to get the speed)
Store in an array, and find the average for each..
Not sure about others.. Maybe have triggers etc for doing things wrong, that remove a value form a varaible, like if you fly somewhere your not supposed to, it removes 30 points..

Hmm
- Ben

j-man

  • Guest
Re:flying rules
« Reply #2 on: 14 Apr 2004, 21:14:13 »
To check if the helicopter was dammage on landing:
Code: [Select]
?(getpos UNTINAME select 2 <  10) && ((getdammage UNITNAME) > 0) : WhatEverYouWantToPutHere
Might work
« Last Edit: 14 Apr 2004, 21:15:22 by j-man »

The Helipilot

  • Guest
Re:flying rules
« Reply #3 on: 14 Apr 2004, 22:06:36 »
thanks guys ! actuelly it works fine for speed but I can' extract altitude...any idea ?

Homefry31464

  • Guest
Re:flying rules
« Reply #4 on: 14 Apr 2004, 22:26:21 »
I think there is a function in the Ed. Depot that does what your looking for, check there.

The Helipilot

  • Guest
Re:flying rules
« Reply #5 on: 14 Apr 2004, 22:50:21 »
I checked already  ;D , no idea of the name ?