Posts: 415
Threads: 44
Joined: May 2010
Reputation:
0
How can i detect if the player runs up to a object added in the script?
Like if i was to add a car ( 3593 ). How would i detect when the player ran up to it and hit it?
So my question is.
How can i detect if a player runs into a script added object
Posts: 138
Threads: 23
Joined: Feb 2010
Reputation:
0
Well, you could make a timer that checks if the player is close to a car. But you can't detect if he hits it(when no one is inside).
If you should, that would require checking facing angle and keystates.... too much work imo.
Posts: 84
Threads: 9
Joined: Apr 2010
Reputation:
0
ah, sorry for double post, my mistake (i celebrated last night and i am still little bit drunk)
Posts: 146
Threads: 4
Joined: May 2007
Reputation:
0
Does the person need to be on foot? Or in a vehicle.
If in a vehcile. You may be able to use timers to detect if the user's vehicle has lost X or more amount of health and is in the proximity of an object then he has obviously hit it. Would be buggy if the car was shot or something like that while near an object. But I see no other way of actually detecting the collision.
Posts: 415
Threads: 44
Joined: May 2010
Reputation:
0
Thanks for your help guys but my question is still un-answered
What i want to happen is:
If a player touches a object (walks into) it will send me a message saying.. Be carefull
As my server is based on a custom made map. It is far away from San Andreas.
It is one big DM map