Okay, I'm working on a mod right now and was referencing the city rp mod just for the giving money command. It defines a variable as this:
%target = containerRayCast(%client.player.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%client.player.getEyeVector()), 8), %client.player.getEyePoint()), $typeMasks::playerObjectType).client;
Now, how would I change that to target a brick (JVS Door)?
I tried just throwing in a pref from the JVS script randomly to see if miraculously that would work, haha. It didn't, I think. Heres what i put:
%target = containerRayCast(%client.player.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%client.player.getEyeVector()), 8), %client.player.getEyePoint()), $JVS::Doors::Category).client;
But, let me know what to do and thanks for any and all help!