Snippets

This page is for short, useful scripting examples.

Common Reference:

this = object in init field.

Move an object to the highest surface (roof). 

this setVehiclePosition [[(getPos this) select 0, (getPos this) select 1, 1000000], [], 0, "CAN_COLLIDE"]

Replace the 1,000,000 with a height to move it to the nearest surface below that height. ‘this’ can be any unit, vehicle or object.

Reference: http://community.bistudio.com/wiki/setVehiclePosition

 

Category:
 

Get in touch

ASOR

Talk to us on

MOBILE MENU