Jump to content
Sign in to follow this  
Ako

Question about ids (new in resistance editor)

Recommended Posts

I have noticed that in the editor after installing resistance, there is a new button which shows IDs on the map.

For a mission which i am creating i would like to mission to fail if any part of the bridge is destroyed.

So is there anyway to manipulate the ID of the bridge parts, in either, setting the ID a name so that u can use getdammage <name>, or been able to getdammage directly from an ID number.

If anyone can shed any light on this plz do so smile.gif

Also i hope that BIS create a new scripting reference as there are many new commands / weapon / unit names since the last reference was created!

Share this post


Link to post
Share on other sites

Ah, first (afaik) 'bridge mission' is being produced... smile.gif There will be many I guess.

Share this post


Link to post
Share on other sites

There is a new command in resistance called Object. It takes the ID number (as shown on the map) and returns the actual object. Use it like

_object = Object ID-number

But take care with this command, I once used a wrong ID and the game crashed.

With _object you can now do all the usual stuff like

GetDammage _object

GetPos _object

Someone even mentioned you can use SetPos.

Share this post


Link to post
Share on other sites

thx a lot biggrin.gif

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  

×