Hi all,
I new to the world of scripting so dont expect much of my skills...
Similar like Terox wrote in another post I cannot get the tailrotor-failure-script (by Vektorboson) to work in my multiplayer map by putting it in the vehicle respawn script. As was suggested earlier, this problem could be solved by putting a trigger in the map that looks for damage of a specifically assigned chopper and if triggered then activates the tailrotor-failure-script. Problem is that when the crashed chopper has respawned that trigger does not apply to that chopper anymore as the original name is not passed to the newly created vehicle.
So, heres the question: how I can I assign a name to a newly created unit. Of course I can feed the name of that unit into the respawn script by adding it to the variables that this script needs. Sorry that i dont know the right names for that , but i mean like this:
[this, "BAS_mH6","
VehicleName"] exec "respawn.sqs"
And then in the script:
_vehicle = _this select 0
_class = _this select 1
_name = _this select 2
Now the respawn script knows the name of the vehicle. Then I need to assign the "VehicleName" string to the name of the created vehicle. Is there a way to do this?
Things that I even understand less is the client-server communication. If I understood well I have to let every client know that this unit with the name "VehicleName" has been created. Am I correct on this one, and if so, how do I do this?
If things are not clear I can provide additional info, but dont start to talk very techy language or I wont understand you
Thnx in advance,
Pimmelorus
[Zeus addon server]