OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: acepilotray on 19 Aug 2005, 03:50:23

Title: scud script
Post by: acepilotray on 19 Aug 2005, 03:50:23
is the script that makes a scud fire?
also is there a script to make a explosin or make a plane land ???
Title: Re:scud script
Post by: Blanco on 19 Aug 2005, 04:13:10
Question 1 - Scud fire...

Code: [Select]
name_of_scud action ["scud launch"]Makes scud missile move to vertical ready-to-launch position

Code: [Select]
name_of_scud action ["scud start"]Makes scud missile ignite and launch

Question 2 Create explosion...

Read
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=24863

Question 3 - Land plane...

Try to put a getout waypoint on the runway (I'm  not sure about this)


Title: Re:scud script
Post by: 456820 on 19 Aug 2005, 09:43:13
Quote
Question 1 - Scud fire...

Code:name_of_scud action ["scud launch"]

Makes scud missile move to vertical ready-to-launch position

Code:name_of_scud action ["scud start"]
Makes scud missile ignite and launch

your right but just alittle note it takes about 15 seconds for the scud to get into a launch state so for example

name_of_scud action ["scud launch"]
~15
name_of_scud action ["scud start"]

to be abit more exact

and question 3
im guessing that lies within the action landing auto pilot
have a look in the action thread

if not how about this flyinheight 0 and a limited speed waypoint ?
(probal not right just a guess)
Title: Re:scud script
Post by: macguba on 19 Aug 2005, 11:00:39
There are at least two complete scud lauch-at-target-and-explode scripts.   BAS made one, can't remember about the other.   The BAS is embedded in one but, being blessed with silage for brains, I can't remember what.   One of the later packs I think.
Title: Re:scud script
Post by: bored_onion on 19 Aug 2005, 14:20:36
Quote
Question 3 - Land plane...

Try to put a getout waypoint on the runway (I'm  not sure about this)

try:

Code: [Select]
plane land "land"
Title: Re:scud script
Post by: Blanco on 19 Aug 2005, 15:08:36
bored_onion

Both ways seems to work but the plane lands quicker with land "land"

I tried that on Malden and he lands and takes off again.
You should place a small trigger over the end of that runway to force him to stop.

Activation : Side of plane1
Condition : plane1 in thislist && Getpos plane1 select 2 <  0.2  
Onactivation : plane1 setfuel 0

Attached a quick testmission, use the radio triggers to watch both planes.