posted 09-01- 04:14 PM
This may be old news, but I just figured it out.Last year we were trying to figure out how to make Dirk slump over in the cockpit when he was hit. Well here it is.
This works to call dof's or anything on your keyboard.inp
XXXX is the "Name" of your Parent Object
YYYY is the "Func"
ZZZZ is the command like "cmdDoorOpen" or "cmdRoll" or "inpFeatherProp"
1. On the object you want to call the function from using obDetach, or onDmg;
onDmg 1 (obExec (Name 'XXXX Func 'YYYY)
2. In your Parent Object;
(obFunc (YYYY(cmdZZZZ)))
This has to be in the Parent Object, it is as if you pressed a key to call a command.
3. On the dof you want to call
(dofID 'openup dofOsc (oscName 'openup oscDelayBgn 0 oscRuntime 2.0 oscDelayEnd 0 oscParent 'XXXX oscCmd 'cmdZZZZ 'cmdRunReverse)
You do not even have to add cmdZZZZ to the keyboard.inp
If you want to use a call that is in the keyboard.inp just use the name like
'cmdDoorOpen or 'inpFeatherProp
If you use a command that is in the keyboard.inp the player can reverse it by pressing that key command if it is set to toggle, but if you use one that is not on the keyboard.inp the player can not reverse it. However you can add the same function call again, like onDmg2 and it is like pressing the key for it again.
I hope to use this to get ol'Dirk to slump over in the cockpit, and see if this works in the Dauntless swing arm for the bomb.
This all started from trying to get the canopy to open before the pilot jumps out. Not there yet, but I'm trying. 
------------------
Raider 33rd~GS
Raiders Site
[This message has been edited by Raider (edited 09-01-2000).]