OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: nogreymatter on 12 Jan 2006, 22:13:59

Title: Heli
Post by: nogreymatter on 12 Jan 2006, 22:13:59
I have a heli in a cutscean (its for a trailer for the campaign im making) that I want to explode while it unloads troops. Okay this is probably a n00b question but how do I make it explode (blow up) while its unloading troops?
Title: Re:Heli
Post by: Pilot on 12 Jan 2006, 23:41:39
Setdammage it to 1 and/or camcreate a shell at its position:
shell = "shell105" camcreate getpos HeliName

-Pilot
Title: Re:Heli
Post by: nogreymatter on 13 Jan 2006, 00:49:41
Thanks that did it.
Title: Re:Heli
Post by: yankme on 13 Jan 2006, 00:52:36
@Pilot , is there a way to add some smoke with a "SmokeShell" ??
Title: Re:Heli
Post by: nominesine on 13 Jan 2006, 01:01:20
@yankme

same method as shells. Just change "shell105" to "smokeShell" or "smokeShellGreen" or whatever colour of smoke you prefer (provided of course that you prefer red or green - because there isn't any other colours to chose from).
Title: Re:Heli
Post by: yankme on 13 Jan 2006, 01:07:09
@nominesine

shell = "shell105", "smokeShell" camcreate getpos HeliName  
what about this, i allways try something and i get an error so i end up makeing 2 lines or 2 triggers

shell = "shell105"  camcreate getpos HeliName
shell = "smokeShell" camcreate getpos HeliName
Title: Re:Heli
Post by: Trapper on 13 Jan 2006, 02:31:59
"shell105" camcreate getpos HeliName; "smokeShell" camcreate getpos HeliName

Just use a semicolon to separate the lines :)
I removed the naming shell = as it doesn't seem you need to name the rounds in your  case.
Title: Re:Heli
Post by: The-Architect on 13 Jan 2006, 02:38:56
If you want to make the explosion more controlled, name your units un the chopper and have a condition.

Unitname not in heliname
then your explosion.

That way your explosion will always happen at the same time.

I say this because sometimes the chopper pilots land differently.
Title: Re:Heli
Post by: yankme on 13 Jan 2006, 03:53:03
ok iam just learning, somethings can go in the " " or [] and ( ) and then you might need a , but you elso might need a space after the ,  but i do use the ; it comes in handy.  but yea ,, some of the things ive been doing there is no sortcuts for,,, and thats fine. but really in the heli thingy this guy wants, id just use a script ok no more coffee for me  :-X