GMMarlboro Posted February 25, 2013 Posted February 25, 2013 i need script when i close to the gate automaticly opens and if iam away it closes automaticly Sorry for my english
pNine Posted February 25, 2013 Posted February 25, 2013 create an object with createObject () create a collision shape or marker and 'onClientMarkerHit' make it move to a position by using moveObject () and with 'onClientMarkerLeave' make it move to the starting position by using the same function. (You can also make it server side)
PaiN^ Posted February 25, 2013 Posted February 25, 2013 ... and with 'onClientMarkerLeave' make it move ... I say it's better to use "onMarkerLeave" instead, Cause on Client side the movement will appear only to the client player, But on Server side it'll appear to everyone
TAPL Posted February 25, 2013 Posted February 25, 2013 ... and with 'onClientMarkerLeave' make it move ... I say it's better to use "onMarkerLeave" instead, Cause on Client side the movement will appear only to the client player, But on Server side it'll appear to everyone onClientMarkerLeave gets trigger for everyone when any player leave the marker, so it will appear to everyone.
Metall Posted February 25, 2013 Posted February 25, 2013 I suggest to have colShapes instead of markers: createColCircle onColShapeHit onColShapeLeave
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now