taufikp
Registered
Here's the scenario:
I want to display 'Hello World' message to in-game console/chat window every time AI is activated/taking over the vehicle.
So here's how I wrote the code
- I wrote "bool bAImode;" in private section of internals.hpp file
- set bAImode=true in UpdateScoring(), when AI is activated (value is from mControl variable)
- in WantsToDisplayMessage(), I wrote if bAImode=true set the message and return( true )
However, no message is shown in chat/console window whenever AI is activated/driving the vehicle.
What am I doing wrong?
This 'beginner plugin project' sounds pretty simple: show a message whenever AI is in control. But in fact very difficult to accomplish, for me at least.
So I need help. Pretty please?
I want to display 'Hello World' message to in-game console/chat window every time AI is activated/taking over the vehicle.
So here's how I wrote the code
- I wrote "bool bAImode;" in private section of internals.hpp file
- set bAImode=true in UpdateScoring(), when AI is activated (value is from mControl variable)
- in WantsToDisplayMessage(), I wrote if bAImode=true set the message and return( true )
However, no message is shown in chat/console window whenever AI is activated/driving the vehicle.
What am I doing wrong?
This 'beginner plugin project' sounds pretty simple: show a message whenever AI is in control. But in fact very difficult to accomplish, for me at least.
So I need help. Pretty please?