Hi @all!
Today its me having a "iam2lazy4google" - like question. ^^
My problem atm: have 2much work ( reallife [i need the dollar baby] ) and 2much hobbyprojects running ( 4one life
).
Guess since A6 came out i never played around with 3dgs mp (mp = multiplayer) again. So i have a quick and really basic question ( or two ), simply trying 2save reading / searching - time while getting some noobinfos about mp related stuff ( on the fly ).
Lets say ive such simple kind of "normal" ( means: none mp ) script:
#define distX skill100 // X - axis movement in this example
action Monster_WED(){ // applyed2 monster-ent (placed in WED)
while (!player) wait (1); // maybe wait until player - ent was spawned
while (my){
my.distX = time_step * 4; // this must be done on server site not here? right (asynchron)?
move_mode = IGNORE_ME | IGNORE_PASSABLE | IGNORE_SPRITES;
c_move (me, vector (my.distX, 0, 20 * time_step), nullvector, move_mode);
if (player){ // simply face player (while moving infront)
VECTOR _temp;
vec_set (_temp, player.x);
vec_sub (_temp, my.x);
vec_to_angle (my.pan, _temp);
}
wait (1);
}
wait (1);
ptr_remove (me);
}
What would i add or modify now, 2turn "Monster_WED" in2 mp - compatible action ?
As far as i know the distance / movement - vector must be calculated on server - site ? Right ? Modified version of script ( mentioned above ) would help me alot 2get the first logic in2.Thanks for your time n tips.
Greets