Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
Compman

Some Easy Stuff That I Dont Know

Recommended Posts

Compman

I was making a super jump mod and I thought that as we are jumping i want to walk in air :D

 

Wouldnt it would be awesome :p

 

 

Help is always aprriciated

 

Share this post


Link to post
Share on other sites
Jitnaught

What are you asking exactly?

Share this post


Link to post
Share on other sites
Compman

like if

 

 

we jump by pressing a hotkey and i am high in sky then i will press a key and he will walk normally in the sky like he is walking on ground

 

 

if i am not wrong its like jesus mod or something like that

 

its only the sky not water :D

Share this post


Link to post
Share on other sites
Rugz007

It's his mod for walking on water

Share this post


Link to post
Share on other sites
Jitnaught

Oh OK. I'm not on my desktop right now so I can't make perfect code, but here is a try.

To detect if you are in the air, do something like:

float distance = Player.Character.Position.DistanceTo(Player.Character.Position.ToGround();

if (distance > 100) {

//Do code

}

 

And with the walking in air, just spawn an object underneath you.

Share this post


Link to post
Share on other sites
Compman

but i want it transperent

 

 

and if you couldnt give its okay other guys are there too....

 

 

 

 

 

is the respetful moderator "Silent" is a modder (am curious)?

Share this post


Link to post
Share on other sites
Jitnaught

Just after you create the object, make it invisible using

Object.Invisible = true;

 

Oh and I believe Silent mods GTA Vice City

Share this post


Link to post
Share on other sites
Compman

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

Edited by Compman

Share this post


Link to post
Share on other sites
Wiebrendh

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

 

 

No offence or something, but please talk normal. You press enter 3 times after each sentence. That is very very annoying.

Share this post


Link to post
Share on other sites
Noox

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

You don't have to create it in front of the player...you have to create it below the player otherwise he will fall, you also have to attach it.

  • Like 1

Share this post


Link to post
Share on other sites
Jitnaught

 

 

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

You don't have to create it in front of the player...you have to create it below the player otherwise he will fall, you also have to attach it.If you attach it the player will fall through. You would have to set the position in a tick.

Share this post


Link to post
Share on other sites
Noox

 

 

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

You don't have to create it in front of the player...you have to create it below the player otherwise he will fall, you also have to attach it.
If you attach it the player will fall through. You would have to set the position in a tick.

 

Uhm didn't know that sorry, so you put it below the player and update its position every x seconds?

Share this post


Link to post
Share on other sites
Jitnaught

 

 

 

 

Wow Vice City is the best game in india .. (yeap its true)

 

 

anyways have to see how to create objects in front of player as he walks

 

 

 

I have NEVER EVER created a object

 

 

have to check native calls :)

 

 

 

Anyways thanks :p

You don't have to create it in front of the player...you have to create it below the player otherwise he will fall, you also have to attach it.
If you attach it the player will fall through. You would have to set the position in a tick.

 

Uhm didn't know that sorry, so you put it below the player and update its position every x seconds?Yep. Maybe milliseconds would be better though

Share this post


Link to post
Share on other sites
Compman

i will ask the question here only...

 

 

 

i know how to play external sounds

 

 

but i want to play a sound while walking is it possible :D ?

plz i am a new guy to modding

 

i only do basic things :p

Share this post


Link to post
Share on other sites
Jitnaught

i will ask the question here only...

 

 

 

i know how to play external sounds

 

 

but i want to play a sound while walking is it possible :D ?

 

plz i am a new guy to modding

 

i only do basic things :p

Tick... detect if W is pressed... play sound.

Share this post


Link to post
Share on other sites
Compman

LetsPlayOrDy You are a genius and a great helper Hats Off!

Share this post


Link to post
Share on other sites
Jitnaught

LetsPlayOrDy You are a genius and a great helper Hats Off!

Thanks, and, umm, ok?
  • Like 1

Share this post


Link to post
Share on other sites
Maro Hannover

Silent is weird he says the SCM engine is over and he still uses it and he locks posts here even he don't mod here

Share this post


Link to post
Share on other sites
Wiebrendh

Silent is weird he says the SCM engine is over and he still uses it and he locks posts here even he don't mod here

 

Silent is an admin, he locks posts that makes no sense. He is not weird

Share this post


Link to post
Share on other sites
Rugz007

Yeah silent is a good guy

  • Like 1

Share this post


Link to post
Share on other sites
Jitnaught

Silent is weird he says the SCM engine is over and he still uses it and he locks posts here even he don't mod here

He meant SCM was over for new GTA games (IV and above basically)

Share this post


Link to post
Share on other sites
Noox

Silent is weird he says the SCM engine is over and he still uses it and he locks posts here even he don't mod here

By that he's saying that SCM is dead and won't happen again in another GTA.

Share this post


Link to post
Share on other sites
Compman

okay now last problem how can i make a player invisible and how to apply force to player in front ?

Share this post


Link to post
Share on other sites
leftas

I think

Player.Character.Visible = false;

and

Player.Character.ApplyForceRelative(Vector3.RelativeFront * 10); // instead of 10 you can put number whatever you want
  • Like 1

Share this post


Link to post
Share on other sites
Compman

thanks dude :p hehehehe

Share this post


Link to post
Share on other sites
Wiebrendh

thanks dude :p hehehehe

 

You are exactly like maro and rugz. Ask everything on the forums..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.