Login  Register
 



Post new topicReply to topic
 
Author Message
 PostPosted: 19 Mar, 2012 
 

Joined: 17 Mar, 2007
Posts: 39
Offline
Hi,

How do you do to make a beam weapons vehicle into a normal vehicle ? I'd like to make the Rhino more conventional, with no laser, and looking at the .bp, I can't understand how it works :)

Thanks !


Top
 Profile  
 PostPosted: 19 Mar, 2012 
 

Joined: 26 Feb, 2009
Posts: 2997
Offline
Hi,

The proper way to remove a units weapon is to use the modblueprints function in blueprints.lua.

you will need to check the bp.BlueprintId matching the rhino's BlueprintId then loop its weapons searching for the Label of the laser and table.remove it.

then hook OnPreCreate in the units script and remove the weapon class entry for the laser

OR

you could try hooking OnPreCreate in the units script and just remove the weapon class entry for the laser, which is ofcourse easier but i dont know if that works as ive never tried it. :)

_________________
Domino.
______________


Last edited by Domino on 19 Mar, 2012, edited 1 time in total.

Top
 Profile  
 PostPosted: 19 Mar, 2012 
 

Joined: 05 Oct, 2007
Posts: 16445
Location: camping near the biggest power-up
Offline
You need to edit the script file no matter what: it contains the code that actually determines how the engine creates the weapons (and hence if it creates a beam weapon or not).

_________________
Nephylim wrote:
But, an FA army in an FA environment just looks... right.
help wrote:
Does anyone know how to use air transports? I cant get them to pick up troops.


Top
 Profile  
 PostPosted: 19 Mar, 2012 
 

Joined: 26 Feb, 2009
Posts: 2997
Offline
BulletMagnet wrote:
You need to edit the script file no matter what: it contains the code that actually determines how the engine creates the weapons (and hence if it creates a beam weapon or not).



ofcourse.

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 19 Mar, 2012 
 

Joined: 17 Mar, 2007
Posts: 39
Offline
Thank you, it's working fine :)


Top
 Profile  
 PostPosted: 19 Mar, 2012 
 

Joined: 26 Feb, 2009
Posts: 2997
Offline
out of interest, which method worked?

_________________
Domino.
______________


Top
 Profile  
 PostPosted: 19 Mar, 2012 
 
Forum Scout
Forum Scout
User avatar

Joined: 02 Mar, 2007
Posts: 9002
Location: Ninja Editing Your Post from a Canadian IPhone
Offline
Moved to Mod Dev Support.

Mike

_________________
God of Models - Moderator
BlackOps Team Twitter

Image


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy