OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MuSe on 12 Jul 2004, 12:11:28

Title: smoking script
Post by: MuSe on 12 Jul 2004, 12:11:28
On my embassy seige mission i want a smoke screen to cover my 3 teams making the assault. How do i added smoke or make AI units throw smoke? Also how do i make things on fire like trucks? for example the mission on the resistance campaign where you meet guba and its a setup, guba leaves and blows village? bludov.
Title: Re:smoking script
Post by: macguba on 12 Jul 2004, 12:58:32
Try

loon1 fire "smokeShell"

Remember that AI units can see through smoke but human players can't.   I have a feeling that JAM smokeshells are opaque to the AI.

If you want to make a truck burn you could use

truck1 setDammage 1

If you have a burn script active (like those incorporated in ECP or FDF) then it will burn.

If you want to blow up something camCreate some explosions.

bang1 = "LGB" camCreate getMarkerPos "bang1pos"

Syntax not guaranteed.   Check the weapons and ammo listings for bomb types.