NOLABaby8732 Posted February 9, 2013 Share Posted February 9, 2013 I was wondering if it is possible and if so, how to use Euphoria through native code not the script hook. Thank You for any help Link to comment Share on other sites More sharing options...
nixolas1 Posted March 4, 2013 Share Posted March 4, 2013 Not sure what you mean, using Euphoria without script hook, only native codes... Do you mean with SCO coding? The easiest and most used way is by sending natives through hooks. Here is how i made some grab under helicopter stuff(WIP): if(IsThisModelAHeli(dModel)){ AttachPedToCar(ped, dacar, 0, -0.5f, 0, -max.Z/2+0.5f, 0, 0, 0, 1); UnlockRagdoll(ped,1); SwitchPedToRagdoll(ped,30000,0,1,1,1,0); Wait(1); if(IsPedRagdoll(ped)) { GetPedBonePosition(ped,Left_Hand,0,0,0,&bonev); AttachPedToCarPhysically(ped,dacar,Left_Hand,0,bonev.X,bonev.Y,bonev.Z,-1,0,1); CreateNmMessage(1,28); SetNmMessageFloat(31,15.0f); //dunno? bone attach offset? SetNmMessageFloat(32,0.55f); SendNmMessage(ped); CreateNmMessage(1,3); SendNmMessage(ped); GetOffsetFromCarInWorldCoords(dacar,(float)0,1.0f,3.0f,&hookX,&hookY,&hookZ); CreateNmMessage(1,237); SetNmMessageVec3(243,hookX,hookY,hookZ); SendNmMessage(ped); } } Link to comment Share on other sites More sharing options...
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