Jump to content
Sign in to follow this  
hypno toad

A bunch of mission editing questions.

Recommended Posts

I am trying to do a few things for my upcoming mission.

So how do I:

- Making looping waypoint systems (when the unit is finished it's patrol I want it to do it again.)

- Make units respawn after a set amount of time (for NPCs and players)

- Give units unlimited amounts of ammo. (if possible)

- Make a trigger that damages or kills a certain team (if they walk into it)

- Make empty ammo crates

- Put other weapons and equipment in ammo crates.

- Make empty vehicles respawn after a set amount of time.

- Make it so only a real player can play as a unit, and not an NPC.

- Trigger text on screen, like a mission title.

Share this post


Link to post
Share on other sites

1) Use a cycle waypoint between the last wp and the first wp

2) Make a description.ext in your mission folder with

respawndelay=no of seconds;

for more info

see here

3) dunno, I suppose a looping script that counted how many magazines you have and then kept adding magazines

4) in the trigger set up

(whoever) present

in the "condition" field

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this AND unitname in thisilst

in the "on activation" field

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitname setdamage 1

5) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">clearMagazineCargo this

6) <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addWeaponCargo ["M16A2",10] adds 10 M16A2s or use addMagazineCargo

7) see answer above

8) I don't know much about mp scripting. Maybe similar to only allowing pilots to fly aircraft etc.

edit: Gah!!! Of course! Brains not working at 2am

9) Do you mean right at the start of the mission

in the description.ext put

OnLoadMission = "HypnoToad's Mission";

or somewhere else?

Share this post


Link to post
Share on other sites

1 - After the last waypoint add one more place it over the first waypoint and select type "cycle"

2 - Respawn settings can be found in the Community Wiki

3 - Create a script that checks if unit has no ammo then addmagazine for example

5 - Put in the ammobox init field <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">clearMagazineCargo this; clearWeaponCargo this

6 - Put in the ammobox init field <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addMagazineCargo ["weaponclassname", 5]; this addWeaponCargo ["weaponclassname", 5]

7 - respawnVehicle

8 - Put in the Description.ext:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">disabledAI = true

9 - You can set a simple text in a Trigger under effects

Denz was faster smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×