Home   Help Search Login Register  

Author Topic: Following One Another (Problem!)  (Read 488 times)

0 Members and 1 Guest are viewing this topic.

RunAwayScientist

  • Guest
Following One Another (Problem!)
« on: 20 Dec 2002, 20:08:59 »
So, you plop down infront of the TV and turn on the action channel. A car screeches by the TV Screen and the cops pursue em...

  "Cessena Fun" (My Roleplay map) is what the trouble is about. My police force I programmed using a unuiqe 6 Star system based on your rate of criminitality (Based on GTAIII). There's a flaw with my police though.

    This would be getting them to 'chase the player' if in a car. However, once a player break the law, the cops drive only to the last position the player was.

  What I need is someone to help me to get the Cops to continually update the Players new position. I've programmed 4 Stars at the moment, and all of the police variable names are listed:

-Ccop1
-Ccop2
-Ccop3
-Ccop4
-Ccop5
-Cpilot1
-Swat1
-"Swat1T" (AArray of Swat units)

  All of them get into their corrisponding vehicles and DO NOT follow the player, or update his position, they just go to the position where the crime was commited.

    I await reply. Thanks for anything anyone can help me with. Thank you,

-RunAwayScientist[ASF](Cheese  PLease)

The_Milky_Bar_Kid

  • Guest
Re:Following One Another (Problem!)
« Reply #1 on: 20 Dec 2002, 20:16:47 »
I would just loop the script mate, just make a label, for now we'll call it start:
#start
and then type the following two lines at the end of the script:
~1
goto "start"

this will mean, if you have a line like:

police doMove [getpos player select 0, getpos player select 1]

it will constantly update where they move to.

Hope that helps.

RunAwayScientist

  • Guest
Re:Following One Another (Problem!)
« Reply #2 on: 20 Dec 2002, 21:45:44 »

police doMove [getpos player select 0, getpos player select 1]


  I never knew you could do that!

   I know your method, I'm using it. I just found an error in my scripting, namely a Typo in my goto "1PoliceFindlpayer". It should have been goto "1PoliceFindPlayer" instead.

  I never actually knew you could do:
police doMove [getpos player select 0, getpos player select 1]

Would you reccomend I enter that? Right now police seem to be working well, very well now that I saw that Typo.

   Thanks for your help!

-RunAwayscientist