Jump to content
Sign in to follow this  
Wiki

Check whether the player has something

Recommended Posts

Hi guys.

I'd like to know how I can set an objective as complete when the player has taken a specific object.

Such as "objective: take the rocket launcher", and set it as complete when the player has taken it.

WHat should I write in the trigger?

Thanks

Share this post


Link to post
Share on other sites

use in and items in the condition for the objective

in tests the array for the item you are looking for and returns true or false.

rocketLauncher in items player;

Share this post


Link to post
Share on other sites

I don't think rocket lacuher will ever show up in "items".

I guess this could work:

secondaryWeapon player != ""

Secondary weapon is always launcher. When secondary weapon not equal nothing this trigger will fire.

Share this post


Link to post
Share on other sites

Ok, I'll try this. Thanks lads

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  

×