Props / Decorations with physics.

A place for Level Editor Tutorials

Props / Decorations with physics.

Postby Kostya Sim » 20 November 2022, 09:03

So idk, if everyone know it already, but you can make decorations with physics, like a pot on the window.
I don't know what to say next, so i'll just write down trigger code (gun and decoration are required):

uid: #trigger*[number]
enabled: true
maxcalls: -1

SetGunSlot( "#gun*[number]", "666" );
SetGunForVehicles( "#gun*[number]", "0" );
op172( "#gun*[number]", "0" );
SetGunPower( "#gun*[number]", "0" );
SetGunProjectileCount( "#gun*[number]", "0" );
op300( "#decor*[number]", "#gun*[number]" );

That's all, it's the end of tutorial, bye.

Kostya Sim
 
Posts: 1
Joined: 2 October 2020, 08:09

Re: Props / Decorations with physics.

Postby darkstar 3 » 21 November 2022, 15:32

Could do this with just the setgunforvehicles trigger action and moving the decor to the gun, rest seems a bit obsolote, optimally you could also put the setgunforvehicles trigger action in another 1 call trigger so that it doesn't get executed over and over again

darkstar 3
Recruit
 
Posts: 6
Joined: 5 November 2022, 21:03


Return to Level Editor

Who is online

Users browsing this forum: No registered users