Posts: 695
	Threads: 141
	Joined: Jan 2012
	
Reputation: 
0
	 
	
	
		I am making a CnR gamemode, and i need to know how to make a building "fall" to the ground.
The command is /blowup.
I really need help.
Thanks.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 171
	Threads: 49
	Joined: Jul 2011
	
	
 
	
	
		You can't make buildings fall to ground though if it GTA SA buildings.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 695
	Threads: 141
	Joined: Jan 2012
	
Reputation: 
0
	 
	
	
		No, i know you can use rotation to make it fall downwards... But i just dont know how to.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,856
	Threads: 6
	Joined: Jun 2007
	
Reputation: 
0
	 
	
	
		Use RemoveBuildingForPlayer and remove the object and readd it afterwards
Now use SetObjectRot and SetObjectPos to blow it up within a timer which gets called by your command
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 2,856
	Threads: 6
	Joined: Jun 2007
	
Reputation: 
0
	 
	
	
		Also first use RemoveBuildingForPlayer to remove the original gta-sa object because we cant move or rotate it
Afterwards re add the object and save the objectid into a variable
Now you can move or rotate it with the function SetObjectPos and SetObjectRot
To let the "fall" look smooth you should use a timer which calls SetObjectPos and SetObjectRot repeatedly
This timer you start with your command
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 695
	Threads: 141
	Joined: Jan 2012
	
Reputation: 
0
	 
	
	
		How do you do it for all players?
And does set object rotation like "move" it to that rotation. And i mean like: it doesnt just dissapear and re-appear at the position you set?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 695
	Threads: 141
	Joined: Jan 2012
	
Reputation: 
0
	 
	
	
		Bump - And would the rotation params of MoveObject work?