Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Help! How to make a Marine Submarine System Moveable in the Sea with w a s d control?

 
  • 0 Vote(s) - 0 Average
Pawn Help! How to make a Marine Submarine System Moveable in the Sea with w a s d control?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#1
2021-04-25, 08:49 PM
I first created a ship and made the dynamic object move. But I have a question, how can ships or objects be controlled again using the keyboard? like driving a vehicle in general?
Awide
Offline

Burgershot Member
Posts: 62
Threads: 5
Joined: Sep 2019
Reputation: 5
#2
2021-04-26, 10:48 AM
You can't really make it like driving a vehicle in general, but you can detect buttons being pressed and change the object's position based on that.
Desolation Roleplay has closed. You can download the gamemode here: https://www.burgershot.gg/showthread.php?tid=2272
Snow
Offline

Burgershot Member
Posts: 48
Threads: 5
Joined: Oct 2020
Reputation: 2
Location: Pakistan
#3
2021-04-27, 07:21 AM (This post was last modified: 2021-04-27, 07:23 AM by Snow.)
(2021-04-26, 10:48 AM)Awide Wrote: You can't really make it like driving a vehicle in general, but you can detect buttons being pressed and change the object's position based on that.

Yes you can. Simply create a RC Cam or any small vehicle and then use AttachObjectToVehicle. Attach that ship or whatever object you want to drive to the vehicle and use putplayerinvehicle.
But it won't be fully functional because you cannot come out of RC vehicles using enter/F key. So you have to figure out a way for that.
[Image: QIDa2vB.png]
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode