nmader Posted July 19, 2013 Share Posted July 19, 2013 (edited) Alright, so I am rather new to coding GTA IV in general. (However I have previous C# experience). Basically I need to make these variables global (due to redefining them each time causes loads of unwanted issues): Vector3 ped1Pos = Player.Character.Position.Around(200.0f); Vector3 ped2Pos = Player.Character.Position.Around(180.0f); Vector3 ped3Pos = Player.Character.Position.Around(160.0f); var Ped1 = World.CreatePed(ped1Pos, 0); var Ped2 = World.CreatePed(ped2Pos, 0); var Ped3 = World.CreatePed(ped3Pos, 0); I am honestly quite stumped and any help would be greatly appreciated. Edited July 19, 2013 by nmader Link to comment Share on other sites More sharing options...
pedro2555 Posted July 22, 2013 Share Posted July 22, 2013 What do you mean exactly by "make these variables global"? You can declare the variables directly below the script scope, they will have reserved RAM space during the entire execution. 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