Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * PlayerBase.c
- *
- * 6IX
- * https://steamcommunity.com/id/6IX6OD/
- * © 2019 - 2020 6IX Development
- *
- * Author : 6IX
- *
- *
- * Notes : N/A
- *
- *
- * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
- * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
- * This work is property of 6IX Development. You do not have permissions to edit/distribute any of this content
- * without written permission from the content author (6IX).
- * Failure to adhere to the content license(s) above will result in actions from Bohemia Interactive Studios.
- */
- modded class PlayerBase
- {
- void SpawnItemOnTargetTest() {
- Weapon weapon = this.m_WeaponDebug.GetWeaponInHands();
- vector camera_dir = GetGame().GetCurrentCameraDirection();
- vector camera_pos = GetGame().GetCurrentCameraPosition();
- vector end_point = camera_pos + camera_dir * 1000;
- vector contact_point;
- vector contact_dir;
- int contact_component;
- Object player_object;
- Class.CastTo(player_object, GetGame().GetPlayer());
- DayZPhysics.RaycastRV(camera_pos, end_point, contact_point, contact_dir, contact_component,null, null, player_object , false, false, ObjIntersectFire, 0.1);
- SpawnEntityOnGroundPos("AKM", contact_point);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement