hey
5v3n
Creator of
Recent community posts
I added second download for this project..
It has mouse buttons now..
also removed variable name and added bool for locked /unlocked.
For interact key use MBL or MBR for mouse buttons left/right
For interact key you can also use NONE- so door cant be interacted directly.
if door is locked by default then you dont have key for it..
..to give player a key variable must be set to 1..
..to open /close door with variable then you must set remote variable to 1..
then its KEY variable name will be GarageDoor1_key
and its remote variable name will be GarageDoor1_remote
Now you can use SetOrChange variable that is default action in Coppercube to set those variables to 1 to give key or control door with variable.
Make sure to delete old script and replace it with new script in scripts folder.
I actually have this possibility added to the current version.
There is special variable that you can use "_remote"
So if you have door with name DOOR1 then variable that you can use is DOOR1_remote
What you can do with it is: add behaviour to the door:
IF klicked then do something..
SetChangeVariable DOOR1_remote to 1
Now door should open if you klicked on it.
With same method you can make buttons to open door and many more things.
Anyways i update this project so it can be used with mouse klick directly.
Without knowing javascript its impossible to add commands to it.
This script made long time ago so there is better way to do that but at current version works like this..
You see line in i_in file :something like this:
1,-309.30,0.01,-112.74,155.23,stand,null&
its the player ID ,positionXYZ,rotationY,animation, COMMAND
ends with & symbol -then next player data will continue if any other player there.
command is not one parameter command as animation name or pos data,
command can be with parameters -separator is |
it reads string from file,
string res
command part starts from res[6]
to check what command it is :(for invisible command)
command name is Inv:
Is it inv?? check:
if res[6].substr(0, 4)=="Inv:"
if yes split it : separator is | for parameters:
var cres = res[6].split("|");
then do whatever needed and use parameters
var m=ccbGetSceneNodeFromName(cres[1]);
ccbSetSceneNodeProperty(m, "Visible", false);
cres[1] for invisible is str nodename.
command line looks like this:
myCommandName:|param1|param2|...and so on.
by script you can use those as needed.
Hi, you can ask irrelavant questions of this itch project topic by using email. Anyways you cant use KeyDown for setting animation directly.. it spams function set animation and it wont allow model to play animation, to prevent this you can use variable..
[animation must be set one time only on each keypress]
Also you can use my action that sets animation [simple scripts] -it wont set animation if animation is already set (so it cant be spammed by keydown)
https://5v3n.itch.io/coppercube-simple-scripts
Sometimes if you have 3d model that uses same texture for multiple obj groups..
then it shows as one texture slot in coppercube.
In tools/options --untick checkbox that says : group similar materials in materials window
(this may work)
also it depends how obj exporter works.. it may group similar materials also.
(so if you use textures that has different filenames it cant do that)
Hi ,this is very nice .. with sounds you have added and car texture it looks and sounds cool.
NB! i had problems to run the game because i had no idea how to start the game :D
Add this line to your main meny -"maybe you have this there but scale of overlay makes it invisible on my screen":
Press "R" to restart the game
targetname is player name who gets damaged.. man in this case.
damage val is value of damage that happens if attack action executed 10 in this case.
use random if enabled puts additional damage to the damage val..damageVal+random(number)
random max 10 is in range between 0 to 9...
so if random val is 9 and damageVal is 10 -total will be 19
ifRND0miss hit.. if random is 0 ..player gets no damage at all.if enabled.
critical hit not enabled in this script-- it will be used to freeze player if hit is 19 (means total) in this case. so player hit animation + maybe some camera shake or something i will figure out.
Hi, coppercube writes file .. client program sends it to server.. server sends ot to client programs.. client writes it to a file .. coppercube read it from file- then in script it parses the string: string looks like - command_name, value,value ..
i dont currently have second computer so its not possible for me to test and make fixes properly.
Player positions are sent out with interval..minimal event action sends commamd only if action is made and should be update something..for example remove node or create one or set visible or invisible something.
Commamds to parse you can add in script ..
In my example i dont have many of them but can be added as many as needed.
Thanks, this healthbar is meant for being used on AI players to display health (game actor with health) but with some simple edits it can be used anywhere.. but there are also script made
https://hadoken-records.itch.io/coppercube-power-bars
Its not free but worth its price and its probably exactly what you need.
You need to setup command for this.. its actually simple. if object picked up you send out command so object will set invisible for others -object can be idenified by its name.. so command can be "oVisible,nodename,false"
Script will parse this line as 3 parameters..
command:oVisible
par1:nodename
par2:value
setScenenodeProperty(getNodebyname(par1) ,"Visible",par2);
I have example for this actually .. i will upload example with many commands soon.