Modme Forums

Can Anyone Create This Script

Game Modding | Call of Duty: Black Ops 3 | Scripting


JCizzle98:

Hey can anyone create this script that I want for my maps is to allow the players in game to pick up the brushes and models and place them back down.


xdferpc:

It depends on what you want to do after
, I could do it


KillJoy:

lol i think he wants it to be like minecraft

this isnt bob the builder jcizzle


JCizzle98:

It depends on what you want to do after
, I could do it

Right now I just want the players to be able to pick up brushes models to move them around the map then just drop them. But in the future want to have the players grab brushes and place them down in SPECIFIC locations then text pop ups then a gun or something appears.


JCizzle98:

lol i think he wants it to be like minecraft

this isnt bob the builder jcizzle

Hey I want my maps to be close to actual minecraft and fun so don't judge me


Spiki:

I can walk you through it but im not gonna make it.
Basically you first spawn triggers around the script brushmodels.
When a player triggers it, link the brushmodel to the player (or hide it)
When the player presses F or melee or whatever, unlink or move and show the block. Its probably a good idea to make an imaginary grid and align the block to it.
To check if the block is at a specific spot just do a if(distance(block.origin, spot.origin)< 50)
and ofc respawn the trigger to pick up the block again