Jump to content
Sign in to follow this  
stilton

getting a units classname?

Recommended Posts

ive looked on the comref briefly but im a bit retarded when it comes to scripting..

in short, ive made a version of evo for me and a friend that uses desert vehicles with the hamas soldier as the enemy, on a desert map..

..im now trying to replace the hamas soldiers with the FFAA-terrorists.. but when i tried to get their class names by dePbo'ing the pbo file, the config.bin is all garbled and hence i cant read it to get the classname..

..so is it possible to use some sort of editor command to get it to show up in a hint ingame, or fix the config.bin so it isnt all garbled.. any help would be appreciated.

thanks

Share this post


Link to post
Share on other sites

Hey.

Create a trigger in the editor.

Set it to radio activation and copy&paste this into the On Activation line:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

hint format["Type: %1", typeOf *name*]

*name* = name of the unit you want to find the classname for

Share this post


Link to post
Share on other sites

thanks i also got a pm explaining that i can use kegety's unRap to 'unwrap' the bin into the original config cpp..

which is also good, means i can check all the different classes for the different units..

thx for your help

Share this post


Link to post
Share on other sites

ur can put in the Initialization line of the unit:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

hint format ["%1", typeOf this]

as well similar to what Deadfast say

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×