Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. I'm new and have a couple of questions about modding with Scripthook.net and that.
  2. How would I Ma nipulate every type of ped in the world? this is what i've tried but can't figure it out.
  3. foreach (Ped Zombie01 in world)
  4. {
  5. //do stuff
  6. }
  7.  
  8.  
  9. Also making a weapon spawn on the ground? I've tried this but not sure about the pickup type field?:
  10. World.CreatePickup(weapon ,Pickup,Game.Player.Character.Position, WeaponHash.AdvancedRifle, 600);
  11. And I got this working but there is a problem only like 4 or 5 peds attack the other just stand still and stare? any way to get them all to attack the player?
  12.  
  13. Vector3 spawnpos1 = Game.Player.Character.GetOffsetInWorldCoords(new Vector3(0, 5, 0));
  14. Ped Zambie = World.CreatePed(PedHash.Zombie01, spawnpos1);
  15. UI.Notify("Spawned zombie");
  16. Zambie.Task.FightAgainst(Game.Player.Character, 1000000);
  17. //Function.Call(Hash.SET_PED_FLEE_ATTRIBUTES, Zambie,0,0);
  18. I've been looking for tutorials can't find much stuff that shows about this and I'd also like to implement custom sounds?
  19. Thanks for reading sorry if this is really basic but I can't find any tutorials/documentation maybe you could link me if there are some good ones?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement