OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pexmo on 10 Dec 2004, 12:57:08

Title: Is there a command to make a player unable to control his character in mp?
Post by: pexmo on 10 Dec 2004, 12:57:08
I want to use this with a script i downloaded that has the ai unable to move and shoot when wounded. At first it seems that it works with players to but if i try i can get my soldier to move on out of there.

this is the script:

http://www.ofpec.com/yabbse/attachments/kmkSimpleWoundScript.zip

edit: Another question, is there a way that i can, using this script, add that the enemy wont continue shooting on a "out of the fight" soldier until he is healed back up?
Title: Re:Is there a command to make a player unable to control his character in mp?
Post by: bored_onion on 10 Dec 2004, 20:42:39
disableuserinput false

would that work?

(maybe this should be in the MP board)
Title: Re:Is there a command to make a player unable to control his character in mp?
Post by: Triggerhappy on 11 Dec 2004, 00:45:57
for the second one:_guy setcaptive true
then when he is healed:_guy setcaptive false

i'm using _guy because that is the units variable in the script
Title: Re:Is there a command to make a player unable to control his character in mp?
Post by: pexmo on 12 Dec 2004, 19:21:17
wher edo i put these lines in mate ? I dint write the script :)
Title: Re:Is there a command to make a player unable to control his character in mp?
Post by: pexmo on 14 Dec 2004, 07:34:28
Ok, the setcaptive part works. But i just cant get the disableuserinput part to work for the downed player. How would i put in that syntax?`

Title: Re:Is there a command to make a player unable to control his character in mp?
Post by: pexmo on 14 Dec 2004, 14:06:32
Is there another wat then using disableuser input?