Jump to content

Player destroys a friendly tank


Recommended Posts

i am working on a mission ( like the vilnius mission ) with 3 friendly tanks !

i want to script:

when an enemy destroys ONE of the tanks the mission will going on

but when a member of "PlayersPlatoon" destroys a tank the mission will be failed!

i just want to know how i can script this

(enemy destroys tank >>>> continue)

(player destroys tank >>>>> end it)



Link to comment
Share on other sites

There are other ways to do this, but this one is the simplest. There can only ever be one Allied company and the PlayerPlatoon is always part of that company for scripting purposes.

You can substitute Company with Platoon if it better suits your requirements.

Jack :)

Trigger Event:

Tank has been destroyed.


Continue executing responses if ((The company including (The shooter who destroyed Tank)) is equal to (The company including (The player-controlled actor))).

Display "MissionFailed" and register mission failure.

Edited by Jack57
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...