Results 1 to 4 of 4
  1. #1
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115

    AIZombies Function

    So, theres a function in the _Mod file that is this:

    Code:
    [[level.SpawnWeapon]]  (Weapon[Name], where[Origin], [optional]angles);//Spawns a gun at the location specified.
    But then I'm wondering, how would the real code look?

    And another thing, is there any way to get it map specific?
    - Heres the code if you need it for this question

    Code:
    SpawnWeapon(weapName, coords, angles)
    {
    point = spawn("script_origin", coords);
    weap = SpawnWeap(weapName, point.origin);
    
    if(isDefined(angles))
    weap.angles = angles;
    
    weap linkto( point );
    
    return point;
    }
    
    SpawnWeap(weapName, coords)
    {
    return spawn( "weapon_" + weapName, coords + (0,0,5) );
    }
    Aaand thats it. Hope ya can help, would be awesome.

  2. #2
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    do it the same way as the mapedit structure. Its nothing elase than a mapping tool.

  3. #3
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    You don't think I've tried?
    I probably got it wrong, but then, I'm not sure what the wrong thing was.

  4. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Got it fixed AND got map specific. /mark closedz

Similar Threads

  1. How do u define function in VB6
    By ilovepie21 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 03-02-2008, 01:20 PM
  2. How can i kill a function in vb
    By HeXel in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-15-2008, 05:56 PM
  3. hack function idea
    By l0ngcat in forum WarRock - International Hacks
    Replies: 6
    Last Post: 10-02-2007, 07:01 AM
  4. Replies: 8
    Last Post: 07-09-2007, 04:15 PM
  5. Disable some of punkbuster's functions.
    By System79 in forum Game Hacking Tutorials
    Replies: 3
    Last Post: 09-07-2006, 12:32 AM