Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. private Checkpoint(Vector3 coords, OnEnterCheckpointDelegate enterDelegate, OnExitCheckpointDelegate exitDelegate, int markerType, int dimension, float scaleX, float scaleY, float scaleZ, int alpha, int colorR, int colorG, int colorB, bool popUpAndDown)
  2. {
  3. entrance = API.shared.createMarker(markerType, coords, new Vector3(), new Vector3(), new Vector3(scaleX, scaleY, scaleZ), alpha, colorR, colorG, colorB, dimension, popUpAndDown);
  4. shape = API.shared.createSphereColShape(coords, range*Math.Max(scaleX, scaleY));
  5. shape.onEntityEnterColShape += EntityEnteredCheckpoint;
  6. shape.onEntityExitColShape += EntityExitedCheckpoint;
  7. OnEnterCheckPointEvent += enterDelegate;
  8. OnExitCheckPointEvent += exitDelegate;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement