OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: SpecterM on 29 Jul 2010, 02:00:08
-
I set up a UAV according to this wiki http://community.bistudio.com/wiki/UAV
Id like to make it so it doesnt destroy. Can someone help me?
-
for SP
http://community.bistudio.com/wiki/allowDamage
for MP use handleDamage
-
thanks, but that didnt work. I ended up doing this..
This flyInHeight 200; this setcaptive true
But after saved to multiplayer mission the UAV doesnt say.....
TARGET!. That! enemy tannk!
How about Respawning? Is there a way to get the UAV to respawn after its destroyed?
-
for MP use handleDamage
What? Is? This? ICouldn't find any reference to it in the comref. Is it a new command? What does it do? Why should I avoid allowDamage in MP mode?
EDIT: I see now that it's an eventHandler. But the second question remains. I've used allowDamage several times in MP with good results, as long as the commands are issued on all machines (including the server).
-
Yes allowDamage damage is local. As long as you execute it on all machines its fine.
But for beginners the EH approach is just the one command without all the locality hassle.
In OA there is a new respawn EH:
http://community.bistudio.com/wiki/ArmA_2:_Event_Handlers#Respawn
To hide an object use:
http://community.bistudio.com/wiki/hideObject
All commands:
http://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2
-
Is there a line I can put in the init to get the UAV to respawn after destruction?