Home   Help Search Login Register  

Author Topic: Spy Satelite by Vektorboson  (Read 1245 times)

0 Members and 1 Guest are viewing this topic.

borrowed soap

  • Guest
Spy Satelite by Vektorboson
« on: 07 Jul 2003, 19:52:53 »
this is a great idea come to life by Vektor, whom tells me in the readme to go to his site for the tutorial that can explain my question, but  i have found no such tutorial on his very cool site.

**I AM TRYING to allow the player to view one of 5 VIP's in the mission, at any time, in order to try and glean info about there travel and whereabouts.**

if i change the initial setting from me (player) to the VIP:
SAT_POS = getpos player to SAT_POS = getpos VIP
i can view the VIP fine (this was a cheat to test whether the satelite and VIP were even on the same island, and not a proposed solution),
**but i cannot track him because "No Object Found"...i believe what is happening is that the VIP's i create dont get included in the SAT_ALLOBJECTS that is generated by a trigger that should include every unit in the game.**

from what i have been able to find out, this task is no problem at all for someone who is passingly familiar with the SpySatelite script by Vektorboson (whom i cant seem to reach even through this site via a internal message...ive got no luck with this seemingly easy stuff)
« Last Edit: 07 Jul 2003, 19:59:07 by borrowed soap »

Gameer_77

  • Guest
Re:Spy Satelite by Vektorboson
« Reply #1 on: 07 Jul 2003, 20:25:22 »
That variable defines the starting position, not the units which can be seen from the sky.

If you read the readme.txt, it tells you how to make it work in your mission.

However, if you only want it to follow one unit, you can simply open up "copyObject.sqs" and paste in the following line over the rest of the code:

allobjects = [VIP]

P.S. If you want more than one followable person using this method, you can add more into the square brackets like this: [VIP1,VIP2,VIP3]

Although he has an account here, I don't think he comes on these forums much anymore. You'd have more luck over at flashpoint1985. His screen-name is Bigpoppa :P ::)

Gameer

borrowed soap

  • Guest
Re:Spy Satelite by Vektorboson
« Reply #2 on: 08 Jul 2003, 01:02:04 »
thx, that would have worked, but i actually got Vektors idea to work (sorta), but here is the problem now:

in his readme Vektor suggests using the   onMapSingleClick  
command to alter the   SAT_POS  ,  which is defaulted at the player.  
this means that the player can click on any part of the map, and view it with the satellite to look for the VIP's.
this is very very cool!, and it almost works the way ive done it, but i need some SYNTAX help i think.
        im using :
onMapSingleClick {SAT_POS = getpos this;true}

        in  a trigger that is:
6000 x 6000
anybody
this
onMapSingleClick {SAT_POS = getpos this;true}

and it works to realign the satellite, but not on where the map single click is, but rather on the trigger im using to utilize vektors original suggestion in his readme concerning the above command that changes the SAT_POS.

**the  < getpos this >  is seems to be saying  'get the triggers position WHEN the player single clicks anywher on the map', but i need it to say  'get the location of WHEREever the map was clicked on'**

in other words, the trigger i introduced (on vektors suggestion) to the otherwise original work of his, DOES use any single click on the map to activate a change in the alignment of the SAT_POS, but not to the Location of the Single Click itself, but rather to the trigger im using to activate the onMapSingleClick command

long to explain, but i wager its a simple syntax thing, i just need to replace the   getpos this    command with one more appropriate?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Spy Satelite by Vektorboson
« Reply #3 on: 08 Jul 2003, 02:08:07 »
onMapSingleClick {SAT_POS = _pos}

i think ;)

tel me if it works

nd i sugest u do it all in radi otriger so u get somin like dat

triger
radius 0X0
radio alpha (or ny oder chanel)
anybody
this
hint "click on da map 2 choose position 4 your sat view" onMapSingleClick {SAT_POS = _pos;onMapSingleClick{}}

nowdaplayer can click on da map (nd ithepens 2 order units around nd oder things) w/o da satjumpin on him all da time ;D

LCD OUT
« Last Edit: 08 Jul 2003, 04:09:02 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

borrowed soap

  • Guest
Re:Spy Satelite by Vektorboson
« Reply #4 on: 08 Jul 2003, 02:28:55 »
both ways seemed good, except they place the sat alignment at my position (giving my image as target, with dual cursors and some othe graphical anomalies).
the ref guide says that the command
<  onMapSingleClick >
does NOT return any value, so perhaps i need some script that translates the onMapSingleClick command to actual xyz coordinates, or somethin, i dont know
any other ideas o' scriptin master? i think im gettin real close to what i need for my mission with the forum help
 8)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Spy Satelite by Vektorboson
« Reply #5 on: 08 Jul 2003, 04:08:21 »
oops its syn prob here ;D fixed in post above ;)
btw onMapSingleClick do return value

Quote
_pos array position
_units array selected units
_shift,_alt bool key state

If click is processed, command should return true.


_pos is da postion ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

borrowed soap

  • Guest
Re:Spy Satelite by Vektorboson
« Reply #6 on: 09 Jul 2003, 02:04:04 »
xcllent! its workin great, only thing is:
when the satellite very first opens up, its view is so close into the ground, u only see a smear of color.   this is cleared up tho as soon as u click on anymovement, at which point the satellite view is just where it should b
this is really cool now.  any idea how to adjust the initial move to the new map-clicked target?  its the only remaining bug, and its a small one
    8)

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Spy Satelite by Vektorboson
« Reply #7 on: 09 Jul 2003, 02:35:51 »
mebe try ;D

change da on activision 2

hint "click on da map 2 choose position 4 your sat view" onMapSingleClick {SAT_POS = [_pos select 0,_pos select 1,100];onMapSingleClick{}}

play w/ da last number (wich is hight ;D) i think it shud work

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

borrowed soap

  • Guest
Re:Spy Satelite by Vektorboson
« Reply #8 on: 09 Jul 2003, 03:01:06 »
that b it
u r da man   ;D