Home   Help Search Login Register  

Author Topic: Following One Another (Copy Cats!)  (Read 483 times)

0 Members and 1 Guest are viewing this topic.

RunAwayScientist

  • Guest
Following One Another (Copy Cats!)
« on: 20 Dec 2002, 19:36:56 »
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)

Kaliyuga

  • Guest
Re:Following One Another (Copy Cats!)
« Reply #1 on: 20 Dec 2002, 21:02:53 »
  You need to set up some sort of loop where the position of the player is continually detected......

so how about this....


trigger: repeatable
size: 0x0
condition: pl distance pigs > 5
activation: pigs getpos pl, pigs domove pl


something like that should work for you... causing the trigger to be tripped every time the player (pl) is more than 5 meters from the pigs.  and then the pigs will get the position of the player and go there...



RunAwayScientist

  • Guest
Re:Following One Another (Copy Cats!)
« Reply #2 on: 20 Dec 2002, 21:48:55 »

   I just found an error in my scripting, namely a Typo in my goto "1PoliceFindlpayer". It should have been goto "1PoliceFindPlayer" instead.

  Right now police seem to be working well, very well , now that I saw that Typo.

   Thanks for your help!