Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
You may have seen on CrazyBobs CnR that he has a new admin chicken, which punishes a player. The chicken (object id 16776) chases the player for as long as the player can drive/run for and shows a total time the player lived for until the chicken killed him.
I was wondering how I could make something like this, except I want it to be a dumper truck that chases the person (because it is a very large and effective vehicle).
Thanks.
Posts: 2,169
Threads: 206
Joined: Jul 2010
Reputation:
0
Use a NPC for dumper car.
Posts: 1,059
Threads: 86
Joined: Sep 2010
Reputation:
0
How would I set it up into a command though. I know how to make the command but how would I get the NPC to follow the player when I execute the command?
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
Creating a timer that sets the pos of the npc to the pos of the player. Like set it for 1 second and get the npcs pos then set it to the pos of the player. So if the player stops. And the pos of the player is same as pos of NPC, SetPlayerHealth(theplayerid,0.0);
Posts: 341
Threads: 18
Joined: Apr 2010
Reputation:
0
StalkerCows uses the Cow object not a vehicle...
Using SetPlayerPos to set a NPC Position will look ugly...
Maybe better to use CNPC Plugin, it has some useful functions to move the NPC's