Jump to content

Trigger help - Explode player


SgtPappy
 Share

Recommended Posts

The F-86 so far has no penalties for pulling more than 7 G at this point in the beta, but I want to make an MP mission for a few friends such that if any Sabre pulls over 7 G, it explodes.

 

I'm trying to use the "Cockpit argument in range" condition as follows:

 

TYPE: 1 Once
NAME: G TEST
EVENT: On take control

CONDITION:
X: COCKPIT ARGUMENT IN RANGE
argument: 1002
min: 0.7
max: 0.72

ACTIONS:
EXPLODE UNIT
unit: Pilot #001

 

That being said, the game does not recognize the argument ID '1002' as valid. According to my mainpanel_init.lua, the Sabre's accelerometer script is:

 

Accelerometer               = CreateGauge()
Accelerometer.arg_number    = 6
Accelerometer.input			= {-5  ,0,10}
Accelerometer.output		= {-0.5,0,1.0}
Accelerometer.controller	= controllers.Accelerometer

AccelerometerMin				= CreateGauge()
AccelerometerMin.arg_number		= 1003
AccelerometerMin.input			= {-5.0, 0.0}
AccelerometerMin.output			= {-0.5, 0.0}
AccelerometerMin.controller		= controllers.AccelerometerMin

AccelerometerMax				= CreateGauge()
AccelerometerMax.arg_number		= 1002
AccelerometerMax.input			= {0.0, 10}
AccelerometerMax.output			= {0.0, 1.0}
AccelerometerMax.controller		= controllers.AccelerometerMax

 

Any ideas?

Link to comment
Share on other sites

Any ideas?

I'd try ID 6?

 

Accelerometer               = CreateGauge()
[color=Blue][b]Accelerometer.arg_number    = 6[/b][/color]
Accelerometer.input            = {-5  ,0,10}
Accelerometer.output        = {-0.5,0,1.0}
Accelerometer.controller    = controllers.[b][color=Blue]Accelerometer[/color][/b]

AccelerometerMin                = CreateGauge()
AccelerometerMin.arg_number        = [color=Red]1003[/color]
AccelerometerMin.input            = {-5.0, 0.0}
AccelerometerMin.output            = {-0.5, 0.0}
AccelerometerMin.controller        = controllers.[color=Red]Accelerometer[b]Min[/b][/color]

AccelerometerMax                = CreateGauge()
AccelerometerMax.arg_number        = [color=Red]1002[/color]
AccelerometerMax.input            = {0.0, 10}
AccelerometerMax.output            = {0.0, 1.0}
AccelerometerMax.controller        = controllers.[color=Red]Accelerometer[b]Max[/b][/color]

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...