Jump to content

all vehicles freeze


abu5lf

Recommended Posts

Posted

@Draken: Why would he create the vehicles via createVehicle? he can just get all vehicles after the map has loaded and freeze them.

@Cx.83: Check one of the 'stealth' game mode maps, it has what you're looking for.

Posted

Man, you need to read the Scripting_Introduction on the MTA Wiki page! There's all reasons of why you need to make a script to set the player's vehicle frozen in a specific case (e.g. when the player hits a marker or when he shoot inside the vehicle). You SHOULD read this page frist of doing anything different from just placing objects.

Well, Wiki page it's like a manual of the game, if you doesn't read it you won't know how to use at all!

Posted

You need to loop through all vehicles and freeze them.

getElementsByType( "vehicle" ) -- This combined with a for-loop to get all vehicles. 
setElementFrozen -- To freeze the vehicle. 

Posted

@@Solidsnake14 Maybe he don't want to set all vehicles frozen? Maybe he want to create a vehicle in the map and set it frozen like a "Ghost car", you understand what I want to say by "Ghost car" no?

Posted

Maybe he wants a static car, a car that is there and not controlled by a player.

Because this '' and how to put vehicles Make frozen '' sound just fuc**ing weird.

Posted

Yeah, this is what I tried to say xD

@@Cx.83 If is this what you want, you can get the position where you want the car and use createVehicle.

Then use setElementFrozen or if you want like many maps you can try setElementColisionsEnabled ( I think is it ).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...