NeXTreme Posted July 14, 2011 Posted July 14, 2011 Hello, so I'm working on a little project, and I have a super-epic code that spawns a vehicle lol... -- Here's the super-epic code, note that "posX","posY" and "posZ" variables change over time so I didn't specify their value here addCommandHandler("create", function(player,command) createVehicle(411,posX,posY,posZ,0,0,0) end) My question is, is there a way to only spawn this vehicle if no players are looking at the point at where it spawns (so the spawn point is not in their field of view). Thanks.
MTA Team qaisjp Posted July 14, 2011 MTA Team Posted July 14, 2011 if getScreenFromWorldPosition(posX,posY,posZ) == false then That might work.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now