abu5lf Posted March 6, 2012 Share Posted March 6, 2012 (edited) I need help! How do I make the vehicle frozen in the map? Edited December 25, 2012 by Guest Link to comment
abu5lf Posted March 6, 2012 Author Share Posted March 6, 2012 We have created a map and how to put vehicles Make frozen Link to comment
Castillo Posted March 7, 2012 Share Posted March 7, 2012 @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. Link to comment
abu5lf Posted March 7, 2012 Author Share Posted March 7, 2012 Is there an explanation or an example? I did not understand Link to comment
RaceXtreme Posted March 7, 2012 Share Posted March 7, 2012 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! Link to comment
Castillo Posted March 8, 2012 Share Posted March 8, 2012 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. Link to comment
drk Posted March 8, 2012 Share Posted March 8, 2012 @@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? Link to comment
Faw[Ful] Posted March 8, 2012 Share Posted March 8, 2012 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. Link to comment
drk Posted March 8, 2012 Share Posted March 8, 2012 Yeah, this is what I tried to say @@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 ). Link to comment
Deagle Posted March 8, 2012 Share Posted March 8, 2012 Or maybe he wants a marker to freeze a car. Link to comment
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