|
Post by MonstaWolf on Jun 19, 2015 22:05:23 GMT
Is there anything wrong with this script? I linked everything accordingly, yet it is not activating when it is supposed to, nevermind doing anything at all.
//OBJ_0 - EventOnContact //OBJ_22 - Car //OBJ_44 - CameraNormal //OBJ_66 - CameraStunt float force = 202000; required force for activation void Main() { if (IN_22 > force) iObjectHide(OBJ_44); if (IN_22 > force) iObjectShow(OBJ_66); }
|
|
|
Post by F1Andre on Jun 20, 2015 8:40:01 GMT
As far as I know you should link the event on contact with the script and the car with event on contact. In the script the if statement should be like the following: if(eventoncontactforce > force) then hide your object. There is preparation to be done before you can use the event on contact, maybe someone else here knows the procedure.
Best of luck.
|
|
|
Post by Power Supersport on Jun 20, 2015 10:30:20 GMT
if (IN_0 > force) iObjectHide(OBJ_44); if (IN_0 > force) iObjectShow(OBJ_66);
Link the car and the colliding object to the EOC as "MONITOR"
|
|
|
Post by MonstaWolf on Jun 22, 2015 18:05:54 GMT
if (IN_0 > force) iObjectHide(OBJ_44); if (IN_0 > force) iObjectShow(OBJ_66);
Link the car and the colliding object to the EOC as "MONITOR" I did, but it's still not working. It's fine though, I've decided it looks a lot better without the action cam.
|
|
|
Post by Power Supersport on Jun 22, 2015 18:30:22 GMT
No... tell us more about your action cam... I think that I can help...
|
|