OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 21 Apr 2005, 14:03:46

Title: disable
Post by: 456820 on 21 Apr 2005, 14:03:46
ok ive got this script wich isnt mine but it allows you to sit on the bac of a tank it all work but when im on it and i can stand up and fire so what can i use to stop that from happening would it be that disable line
Title: Re:disable
Post by: Wadmann on 22 Apr 2005, 20:04:05
Quote
i can stand up and fire so what can i use to stop that from happening

Do you want him to not stand, not fire or both not stand and not fire?

If you do not want him to fire, remove his ammo and replace it later when/where it is needed.

As for the not standing, shoot his kneecaps!  ;D

But seriously, that is the only thing that I can think of. Just set his damage to a point where he cannot stand, and revert it back when you give him his ammo back.

Of course, this would work but I am not sure of the damage level needed so it may make the unit all bloody.

This may not be the best of solutions, but it is the only one posted so far (I hate to see questions go unanswered as it is so un-OFPEC like!). :P

Wadmann
Title: Re:disable
Post by: Flauta on 23 Apr 2005, 20:46:45
not firing : This SetCombatMode  "blue"
not standing: This setunitpos "down"

That what's you'r asking??

really DK what the script does.. if you descrive the problem better, we could help you better.. :P


Bye
Title: Re:disable
Post by: 456820 on 23 Apr 2005, 21:49:56
well thats kind of right but i dont mean for an ai i mean for the player.
sorry for not stating