OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: recon on 06 Nov 2002, 17:12:50

Title: captive mission.
Post by: recon on 06 Nov 2002, 17:12:50
How could i make a mission were you have to rescue a hostage, the hostage would be a captive west soldier what would i write to stop the enemy shooting him, and also how would i sort it so that the captive would follow me when i rescue him? any help would be appreciated.
                         (recon)
Title: Re:captive mission.
Post by: seanver on 06 Nov 2002, 17:23:01
unit setcaptive true

Where unit put the name of the one you want to be a hostage. Remove all his weapons (removeallweapons unit) because it looks... strange a hostage with weapons and also he will fire at the enemies although they won't shoot at him