compass pointing to obj in obj

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

compass pointing to obj in obj

Post by LtNeil »

I have made an objective multiplayer map and as usual one thing is not working the compass!

When you play the allied team(setting the bomb team)the compass wont point to the objective!? what have i forgotten to put in?
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

Do like that :

Code: Select all


main:

thread my_objective_compass// That will point the compass to your objective


my_objective_compass:

while(1)
{
set_objective_pos $bomb_name// point it to the right targetname
waitframe
}

end

Afterward , i think you are done .

You can point it to a script_origin aswell , if i am right ....



Lovely DarkSniper[Cpt]
Deadly and slient.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You can't make the compass point to anything apart from teammates in MP. It's been explained previously a thousand times.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

Post by LtNeil »

A thosuand times eh! thats quite a lot i wonder why i did'nt see it before?and if it cant be done then how does the compass point to the objectives in the hunt? or v2 facility? in multiplayer? answers on a postcard please! :roll: :)
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

/forum/search.php?mode=results

It doesn't. It points to your teammates.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Nope, It will not and does not work.
Image
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

Rubbish!!

Works fine in SH multiplayer.

//$bomb1 is the targetname of your bomb
addobjective 1 1 "" $bomb1.origin
setcurrentobjective 1


Grassy
An ambiguous question will get a similar answer...
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Yea, I couldnt tell you bout SH or BT. I only have AA.
Image
LtNeil
Sergeant
Posts: 54
Joined: Sun Nov 14, 2004 8:46 pm
Location: southend on sea
Contact:

Post by LtNeil »

Cool thanks people! and it was bt i was doing(guess i should have said,sorry!)
My candle burns at both ends it will not last the night but oh my foes and oh my friends it gives a lovely light.
Post Reply