Kyle, actually i'm really very busy at my work
(it's goin round'a'round here), so i can't really
help you at the mo.
I'll hop in this weekend again to help ya gettin
this baby to work.
Meanwhile a few hints:
I am having some serious troubles and am in need of serious help...I need to know how, if possible, you can pass variables from one script to another
There are local variables (_variable), which can't be
passed from script to script
and there are global variables (variable), which can be
passed.
_variable = 0
will only work inside the local script
variable = 0
will work global and can be accessed by every script
As you want to do this in multiplayer, you also need
to take care that the variables do match on all machines.
Therefore there is the publicVariable command.
e.g:
variable = 5
publicVariable "variable"
The first line would assign a value of 5 to the variable
The second line would update the variable on each machine
with the value the variable has on the actual machine.
(lol - i know this may sound a bit like hardcore math right
now, but once i get more time left, i can tell it you in an
easier way, including better examples)
Also, how do I check if the action has been used? Do i just put somethin like '@disarm_action = true' ?
Best you do that by (as you are already close by) using
a flag (boolean/numeric variable) to be set on/off
in the script which is activated by disarm_action, you just
say something like: disarm_sequenze = true
and if it's true, you/the game knows that it has been activated
if it's not true - yeah yeah you know ...
how do you make it so that when ANY person gets within 2meters of the car the disarm action appears?
Well, best you would add the action to the car itself, at the
point of time, when the bomb gets activated.
Now every unit who comes close to the car, would get
the custom action showing up at right bottom.
The only thing to mention here is:
even the guy inside the car will be able to activate the
disarm action, but you can make a workaround here aswell
by checking in the disarm script, wether the unit who
called the disarm script is inside the car or not.
If he's inside, let a message appear to him, telling him
something like: "damn - how shall i disarm the bomb, if i'm
inside the car - i need to get out first" and then exit the
script for him.
You would also need to do that with the cut_link actions,
therefore i think it would be best to let a dialogue box
appear, once the disarm action has been called, and it's
not the guy inside the car, trying to disarm.
I hope i don't lead you into a toooo mucho complicated
affair now by all these suggestions, but as i already said
a simple car bomb already exists, and i just want to help
you makin something really excellent here.
btw - i should have thought myself about this script, but i just
cought up your idea, so i'll leave it to you earning the
stars for that
Sorry, if it's not easier now than before, but due to
my lack of time at the mo, i can't explain it more easier
for you right now - as i mentioned before, i'll be back
with more info this weekend.
~S~ CD