OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Ziro on 26 Mar 2003, 14:42:23

Title: I have the _best_ MP mission ever + need help
Post by: Ziro on 26 Mar 2003, 14:42:23
ok lads, ive made a really cool mission but i dont want to give the game away just yet. i need help making units when the players are within XXX distance of the particular town. how can i do this (and creat waypoints for them) easily?

also how do i make multi-instance variables?

ive made a ncie suicide script with the action menu but it executes another script and i have to carry the variables accross... how can i make it be able to run many of the script without them conflicting.

-ZiRo
Title: Re:I have the _best_ MP mission ever + need help
Post by: Terox on 29 Mar 2003, 01:37:10
if you need to use a variable in more than 1 script, then in the first script that makes the variable, type in the following line

myvariablename= blah blah blah
publicvariable "myvariablename"

eg

scoreE=scoreE+1
publicvariable "scoreE"
-----------------------------------------------------------------------------------------------------
Quote
ok lads, ive made a really cool mission but i dont want to give the game away just yet. i need help making units when the players are within XXX distance of the particular town. how can i do this (and creat waypoints for them) easily?

This sounds coopy to me so i dont really know

i would imagine you need to make a trigger that activates an AI creation script.

If you look in the depot section theres probably examples of the ai scripts