Jump to content
Sign in to follow this  
bloodxgusher

SetObjectTexture and Triggers

Recommended Posts

Hey everyone. I am having a issue getting a trigger to fire the way I want.

Basically I am trying to have the player drive into a designated area where the vehicle he/she is driving will be changed.

The texture of the vehicle will be changed to a premade jpg file in the mission folder.

Here is what I am working with.


Condition: vehicle player iskindOf "SUV"



On Act: SUV setObjectTexture [0, "PurpleSUV.jpg"];

Now im pretty sure in the On Act box, the SUV is being looked at as some outside variable making it not fire.

Lastly, can anyone recommend another way of going about this. Getting around the global effect of triggers is tricky.

Thanks

Share this post


Link to post
Share on other sites

You actually need global effect of triggers since setObjectTexture is local command and trigger will execute it on all clients.

I never used triggers but I think that list of trigger-activated vehicles should be in thislist variable. On act probably should be something like this:

(thislist select 0) setObjectTexture [0, "PurpleSUV.jpg"];

Oh and SUV base class is "SUV_Base_EP1", not "SUV". Use config browser as reference when working with vehicle classes.

Share this post


Link to post
Share on other sites

Sweet thanks. I will test this.

using the class name was my next step since it is specific

---------- Post added at 01:37 AM ---------- Previous post was at 12:35 AM ----------

You actually need global effect of triggers since setObjectTexture is local command and trigger will execute it on all clients.

I never used triggers but I think that list of trigger-activated vehicles should be in thislist variable. On act probably should be something like this:

(thislist select 0) setObjectTexture [0, "PurpleSUV.jpg"];

Oh and SUV base class is "SUV_Base_EP1", not "SUV". Use config browser as reference when working with vehicle classes.

Ya this very much worked. Never knew about "thislist" thanks for the tips.

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  

×