Jump to content
Sign in to follow this  
Spudgunner

object ID numbers query

Recommended Posts

In the editor, your able to display object ID numbers on the terrain map. How do you reference them in script to see what objects they are, and use them for thing such as waypoints etc).

Share this post


Link to post
Share on other sites

Thanks - I also tried which worked.

myIDobject = getPos Player nearestObject 123456;
hint str(myIDobject)

I wish to use these object ID's as Waypoint destinations. Would they still work if they were destroyed?

Share this post


Link to post
Share on other sites

That's basically the same thing just uses the player.

You might want to grab all the locations in the missions init.sqf so you have them stored.

How exactly are you using these waypoints? Would markers, even hidden ones, work better? So at least the mission designer could easily see the flow of waypoints?

Share this post


Link to post
Share on other sites

Where would I find this sqf file? I looked in the install directory and user missions, but its not there.

I'm using invisible markers atm, but I like to keep them to a minimum for a background mod I'm working on. What I'm doing is running a bus from one bus stop to another. So each time the script is called, the range of stops would be addressed again. What happens if the bus stops are destroyed? Would addWaypoint still find the object even if its destroyed.

EDIT: Actually, I did test if a destroyed object is located by placing a sleep command before the script addresses it. It was found. But what happens to the bus stop wreck? Is it recontructed? Removed from the game? Would the addWaypont still find it

Edited by Spudgunner
to edit ;)

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  

×