well there are four scripts for the hostages:
set_free
set_dead
set_captive
set_enemy
set_captive is the main script, it makes the hsotages hostage
set_dead is when they are dead, it makes them fall on the ground (rather than stand dead in hostage position hands in neck)
set_enemy is that enemies begin shooting at them
and set_free is to rescue them
now why it wont work is the scripts are all linked together
they use command lines like _this select 0
and if you dont let the Ai use the action menu command you will get errors
have a look at the scripts and then u will (probably) understand
SET_CAPTIVE:
_hostage = _this select 0
_hostage setCaptive true
_hostage switchMove "FXStandSurUniv"
_hostage setBehaviour "CARELESS"
_hostage addAction ["Secure Hostage", "hostages\set_free.sqs"]
_hostage addEventHandler ["killed", {_this exec "hostages\set_dead.sqs"}]
removeAllWeapons _hostage
exit
SET_DEAD:
_hostage = _this select 0
_hostage setCaptive false
_hostage switchmove ""
_hostage removeAction 0
exit
SET_ENEMY:
_hostage = _this select 0
_hostage setCaptive false
_hostage setBehaviour "COMBAT"
_hostage removeaction 0
exit
SET_FREE:
_player = player
_hostage = _this select 0
?!(alive _hostage):exit
?!(alive _player):exit
_hostage setCaptive false
_hostage switchMove ""
_hostage setBehaviour "COMBAT"
[_hostage] join _player
_hostage removeAction 0
"2" objStatus "Done"
obj2done = true
exit
well exept for all this bad news, I got good ones too ;D
I've finished it, I have changed many things on the scripts and in the mission editor and I've finally (after 4.5h!!
) managed to get it to work
Thanks to MacGuba and a few of my scripting friends
Cheers guys
My map will soon be downloadable on a site (where I dont yet know ;D)
Ofcourse I will post it to ofpec, opflashpoint, flashpoint1985, ... but for sure download look at this thread again in a few hours/days and u will find out where to go
(after 1.5 years of making my map perfect ;D ;D ;D)
Thanks to all the guys who helped making this map (that are about 100 peeps
)
Bye