OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
Setdammage it to 1 and/or camcreate a shell at its position:
shell = "shell105" camcreate getpos HeliName
-Pilot
-
Thanks that did it.
-
@Pilot , is there a way to add some smoke with a "SmokeShell" ??
-
@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).
-
@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
-
"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.
-
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.
-
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